HTML Works for Some Pages, Not Others | Community
Skip to main content
December 24, 2013
Question

HTML Works for Some Pages, Not Others

  • December 24, 2013
  • 5 replies
  • 1313 views
I'm using some HTML on our landing pages so people cannot use Gmail, Yahoo, Hotmail, etc. to submit information. The HTML is working on the majority of our pages, but there is one page that I've re-added the same HTML multiple times, yet it still doesn't block those email addresses from being submitted.

Any suggestions?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

5 replies

Level 4
December 25, 2013
Are you using custom javascript form validation?  Can you give me the URL of the landing page that doesn't work?
December 26, 2013
It's script that someone here on a discussion board suggested I give a try, and it works great for 99% of our pages, but just not this one:

http://content.insitesoft.com/ForresterWave_DownloadtheReport.html

I've copied the script from the working pages 3-4 times and re-added it to this page, but still not success. Please let me know if there's anything else you need from me.

Thanks!
Kenny_Elkington
Adobe Employee
Adobe Employee
December 26, 2013
Hey Alec,

It looks like you're not correctly closing the script tag for the function on line 408.  If you add in a closing </script> tag aqt the end of you HTML element, it should work.
December 26, 2013
So it looks like perhaps you didn't copy the whole script, missing a little bit at the end I assume.



So using Google Chrome (right click, Inspect Element, bottom right look at errors), it looks like you're missing a } and a </script> at the end of this function to close out the javascript block. See how it just ends in </div> without first having a </script> to end it?

Then there's a 2nd error on the page with a custom variable.



Which that seems strange to me as you are defining it, but for some reason it isn't happy with the definition. Or perhaps this needs to be in a single < script> block, both the definition of the variable, then the marketo munchkin code, then the use of the variable. 

Good luck getting this debugged. I think that this is where your problem lies.
December 26, 2013
Great! We got it figured out. Thanks everyone for your help!