GTM Form Event Listener is overriding onSuccess script I've looked through a bunch of posts on here, but can't find one that's entirely relevant to my situation.
I'm trying to create an onSuccess script where the user will stay on the page if certain criteria is met and a second form will show, but if they don't meet the criteria, they will be redirected to a Thank You page (which is how the form functions today).
Setting 'return false' has no effect, and from researching in here, I believe it's our form event listener on GTM that is causing any custom onSuccess code to be overridden. The form will either redirect to the Thank You page that is set up on the Marketo side, or if I change that to 'stay on page', the page refreshes entirely instead of just hiding the form.
If I remove the event callback that is in the GTM code, everything works as it is supposed to, BUT it breaks our other forms on the website from submitting for some reason.
Is there anyway to override the GTM event callback?
Here is my form