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 5 years 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 ?
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 !
Hi @mrlyth
Thank you for the update.
Is the Facebook pixel tracking working as expected now too?
Best Regards
Patrick Freitas