gravity forms fire js event on successfull form submission gravity forms fire js event on successfull form submission wordpress wordpress

gravity forms fire js event on successfull form submission


There's an event fired upon successful Gravity Forms submission: gform_confirmation_loaded. You can use it with jQuery like so:

$(document).on("gform_confirmation_loaded", function (e, form_id) {  // code to run upon successful form submission});

See documentation