• Resolved mrdax

    (@mrdax)


    the following code:

    jQuery(document).on('submitResponse.example', function( e, response ){
        if ( response.errors == false ) {
            // Code to be fired upon a submission here
        }
        return true;
    });

    seems to work for all forms. if i have more than one form on a page is there a way to cater this code to one form id? i’m sending events via analytics and this one code for all forms isn’t allowing me to name events properly.

    https://ww.wp.xz.cn/plugins/ninja-forms/

Viewing 1 replies (of 1 total)
  • Thread Starter mrdax

    (@mrdax)

    Derp moment. when i replaced document with the form id i forgot the single quotes. Got it sorted out you can close this topic

Viewing 1 replies (of 1 total)

The topic ‘Custom JavaScript on AJAX Submission Per Form’ is closed to new replies.