Has anyone else found that this code does not work on IE 9 and below? Works fine in IE 10 & 11 but won't allow form submit no matter what the email address is in IE 9.
Was also wondering if anyone has altered the Marketo supplied script for form validation (#9 on here -http://developers.marketo.com/documentation/websites/forms-2-0/) to work for Email address and would care to share. I haven't seen it out in the Community yet. Time to go brush up on my js knowledge...
Thanks for sharing your code! I finally got around to testing last week and it worked as expected when embedding the form. I'm curious if you've had any success using this when placing the form directly on a Marketo LP? and how you got it to work? I tried using it with the drag and drop form and the script was causing the form to load twice on the page.
The problem is when using this and embeding the form I've lost the prefill functionality.
I hate to gain one functionality but lose another. Would love to hear your thoughts.
I haven't been able to get the script to work on a Marketo LP, only as an embedded form on a web page. Currently working on a solution to get it resolved on Marketo LPs. Jon, here is the form we are using with the current script: http://www.boaweb.com/contact-us/
Has anyone had an issue with getting the form.showErrorMessage() to persist when users hit the ENTER key instead of the submit button?
For us, when users uses the ENTER key to submit the form, the message is rendered but quickly, but quickly disappears. If the user clicks the SUBMIT button, the error message persists until the user edits the input box (correct behavior).
Any ideas how to make the ENTER key and SUBMIT button behave the same?
We've tested this only on a Mac, but same behavior exists in Safari, Firefox and Chrome.