Viewing 9 replies - 1 through 9 (of 9 total)
  • Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mrlyth

    I hope you are doing well.

    Had you updated line 70

    your-pixel-id-goes-here

    Do you see any error on the browser console too?
    https://developer.mozilla.org/en-US/docs/Tools/Browser_Console

    Let us know the result you got.
    Best Regards
    Patrick Freitas

    Thread Starter mrlyth

    (@mrlyth)

    Hi,

    Yes I updated that line as well.

    The problem is that this code does nothing :

    jQuery(function($){
    $(document).on( ‘forminator:form:submit:success’, function( formData ){
    alert(“success”);
    });

    });

    And there is no error related to that in the console. Just some warnings on some fonts.

    • This reply was modified 3 years, 9 months ago by mrlyth.
    Thread Starter mrlyth

    (@mrlyth)

    Oh I realize I’m submitting a quiz and not a form, does it change the event I have to use ?

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mrlyth

    For quiz you can use:

    forminator:quiz:submit:success

    form.trigger( 'forminator:quiz:submit:success', [ ajaxData, formData ] ) ;

    jQuery(function($){
    $(document).on( 'forminator:quiz:submit:success', function( formData ){
    alert('ok');
    });
    
    });

    Let us know if this worked for you now,
    Best Regards
    Patrick Freitas

    Thread Starter mrlyth

    (@mrlyth)

    So I tried this and it detects the event :

    jQuery(‘form#forminator-module-880’).on(‘submit’, function (e) {
    alert(“success”);

    });

    But this doesn’t fire anything :

    jQuery(‘form#forminator-module-880’).on(‘forminator:form:submit:success’, function (e) {
    alert(“success”);

    });

    I guess it has to do with the event itself then.

    Thread Starter mrlyth

    (@mrlyth)

    Didn’t see your reply, I’ll try !

    Thread Starter mrlyth

    (@mrlyth)

    Ok yes, that works ! Thanks !

    Plugin Support Patrick – WPMU DEV Support

    (@wpmudevsupport12)

    Hi @mrlyth

    Thank you for the update.

    Is the Facebook pixel tracking working as expected now too?

    Best Regards
    Patrick Freitas

    Thread Starter mrlyth

    (@mrlyth)

    Yes !

Viewing 9 replies - 1 through 9 (of 9 total)
  • The topic ‘Forminator Form Submit Success’ is closed to new replies.