Feature request: js callback option

Support MB Frontend Submission Feature request: js callback option

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #31357
    SIWSIW
    Participant

    Would you consider adding a customCallback parameter to the shortcode, to specify a javascript function that should be executed in the .done of the ajax call? That would allow e.g. for a Google Analytics event to be triggered.

    #31367
    Long NguyenLong Nguyen
    Moderator

    Hi,

    You can use the frontend form hooks to trigger some JS functions, such as rwmb_frontend_after_save_post. Please refer to this documentation https://docs.metabox.io/extensions/mb-frontend-submission/#hooks-1

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.