$(function() { $('#formID').on('submit', function(e) { alert('testing'); e.preventDefault(); }); $('#formID').submit(function(e) { alert('testing'); e.preventDefault(); }); $('#formID').submit(function() { alert('testing'); e.preventDefault(); }); });
November Happy Hour will be moved to Thursday December 5th.
I'm looking to capture the form submit event in my javascript so that I can push Google Tag Manager data out to Google. I've tried every combination of events however it looks like EPiServer is not doing a normal form submission. Can you point me in the direction to capture this event?
On submit I will capture all of the element values and insert them into GTM datalayer push. I've can accomplish this just not on form submission.
Thanks!