• Resolved virgiliosantos

    (@virgiliosantos)


    Hi,

    Is there any feature that would make me able to put a small script as callback function after the Ajax Callback?

    Thanks

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Contributor Jeremy Pry

    (@jpry)

    Hi @virgiliosantos,

    Are you talking about a callback script within JS, or within PHP? If you’re talking about JS, then you should be able to attach to the same event handler that the form itself uses:

    
    $( 'body' ).on( 'submit', '.yikes-easy-mc-form', function() {
        // Do your stuff here.
    } );
    

    If you wanted something more specific within the Easy Forms, it could be a feature request to have an event trigger within our own code.

    Plugin Contributor yikesitskevin

    (@yikesitskevin)

    Hi @virgiliosantos,

    To add to @jpry’s response, we have custom JS callbacks that were originally intended for Google Analytics integrations. They could be used for any JS code you wanted though. The nice thing about these is you can decide to fire them based on whether the subscription was successful or not.

    Here’s a KB article with more information: https://yikesplugins.com/support/knowledge-base/add-google-analytics-event-tracking/

    Cheers,
    Kevin.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Custom callback after ajax submission (conversion purposes)’ is closed to new replies.