JavaScript form events
-
Hello,
i’m trying to get the javascript form events to work as described here: https://www.mc4wp.com/kb/javascript-form-events/Unfortunately, none of the events work except the first one ‘started’ which prints out a message in the console just fine, but the others do not work.
I am interested in the success event, so i’ve tried:
<script>
mc4wp.forms.on(’15.success’, function(form, data) {
// your code goes here
console.log(“Form with ID 15 successfully submitted.”);
});
</script>Of course i changed ’15’ with my form ID number, but no message is printed in the console and i cannot continue with calling the other functions i need.
Please advise. I can send you the website link to the support email if it’s appropriate, since i don’t want to publicly place my link here.
NOTE: I have a caching plugin installed and i tried without it enabled, but the problem still persists.
Thanks!
- The topic ‘JavaScript form events’ is closed to new replies.