Link to home
Start Free TrialLog in
Avatar of Joshua Frazier
Joshua FrazierFlag for United States of America

asked on

javascript form - error when hitting enter

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:

Thank you,
Avatar of hielo
Flag of Wallis and Futuna image

Link to home
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of Joshua Frazier


Yes! That did the trick! Thank you so much, I can't believe I didn't see that.
Thank you so much for your help!