$(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();
});
});
A critical vulnerability was discovered in React Server Components (Next.js). Our systems remain protected but we advise to update packages to newest version. Learn More.
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!