Avatar of Joshua Frazier
Joshua Frazier
Flag 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: http://smcu.com/promos/auto-lg-aw/

Thank you,
Web DevelopmentJavaScript

Avatar of undefined
Last Comment
Joshua Frazier

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
hielo

Log in or sign up to see answer
Become an EE member today7-DAY FREE TRIAL
Members can start a 7-Day Free trial then enjoy unlimited access to the platform
Sign up - Free for 7 days
or
Learn why we charge membership fees
We get it - no one likes a content blocker. Take one extra minute and find out why we block content.
Not exactly the question you had in mind?
Sign up for an EE membership and get your own personalized solution. With an EE membership, you can ask unlimited troubleshooting, research, or opinion questions.
ask a question
Joshua Frazier

ASKER
Yes! That did the trick! Thank you so much, I can't believe I didn't see that.
Joshua Frazier

ASKER
Thank you so much for your help!
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23