Streaming live at 10am (PST)

Contact Form - Disable enter key sending form


#1

Hi All,

Does anyone know how to stop my contact form from sending when someone hits enter in one of the fields?

I put my site live yesterday and I’ve had a few emails through the form that just say “Hi Tom,” because when they hit enter to type on a new line the form sends…

Any ideas?

Thanks a lot,

Tom


Here is my site Read-Only: LINK
(how to share your site Read-Only link)


#2

Hi, this is how quite every form works actually. Tab key is made to go from a field to another, Enter publishes the form. If you remove it using code, you’re damaging your site’s accessibility.

Accessibility is big deal and drives what you should do or not regarding ront end evelopment. https://www.w3.org/standards/webdesign/accessibility