Meta Box
Support Forum
Support › MB Frontend Submission › Feature request: js callback option
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.
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
rwmb_frontend_after_save_post