We help IT Professionals succeed at work.

javascript form - error when hitting enter

208 Views
Last Modified: 2017-04-13
I am working on a landing page that has a contact form made with javascript. It connects to my Email Service Provider. If someone enters in the three fields correctly, the info passes to my ESP just as it should. However, if someone hits the "enter" key too early, they get taken to another page with an error message. I would like an alert to display instead, that says what fields the person needs to fill out before they will be able to submit.

The page is available here: http://smcu.com/promos/auto-lg-aw/

Thank you,
Comment
Watch Question

CERTIFIED EXPERT
Expert of the Year 2008
Top Expert 2008
Commented:
This problem has been solved!
(Unlock this solution with a 7-day Free Trial)
UNLOCK SOLUTION
Joshua FrazierMarketing Manager / Creative Services

Author

Commented:
Yes! That did the trick! Thank you so much, I can't believe I didn't see that.
Joshua FrazierMarketing Manager / Creative Services

Author

Commented:
Thank you so much for your help!