This content has been marked as final. Show 4 replies
Didn't take a deep look but it looks like you have two JS validations. Perhaps get rid of the first one since it looks like you're using the second one on the page that works?
First validation code
Well, that code is included in the instructions and you can see it on the source of the Marketo landing page: http://ww2.symform.com/NewWebsiteTeaserForm_Form.html
But I did try removing it just for the heck of it and it still doesn't work.
The page that works (along with all my forms on my current site) uses an older version of the code that was described in an older version of the how to article. Thinking that might be the problem I tried putting the older version on the new site, and vice versa, and still had the same problem. Works on the old site, not on the new.
In my inspect element console I do see this error:
Uncaught ReferenceError: Validator is not defined new.symform.com/:163
Validator is the Marketo function that is called, so maybe there is a problem with it getting loaded from the mktFormSupport.js?
- Uncaught ReferenceError: Validator is not defined new.symform.com/:163
Well, I figured it out. Even though the field was marked for validation of the email, it wasn't marked as required on the form. Fixed that on the original form, added the required class to the form on my page and now it works. Apparently the email field has to be required in order for it to validate what was entered. Seems kind of strange. While most people will always want email address required, I can imagine a scenario where you don't, but still want to validate it as valid if someone enters something. Anyway, so much headache for such a simple fix. Angry at myself right now.
Glad you figured it out. Agree that it's unexpected.
Anytime you do something that's not supported out of the box though, these things will happen :)