WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Form submission via enter key?

for

From: Paul J. Adam
Date: Nov 6, 2013 7:52AM


If that’s the standard behavior of web forms then why break the norm? And yes like you said when I do my form validation if they press enter key on the first input it would then send their focus to the first invalid input and read the error message automatically. So they could keep pressing ENTER all they want until every field is filled out correctly. Validation should handle any cases of the user accidentally pressing the enter key too soon.

On Nov 6, 2013, at 8:45 AM, Corbett, James < <EMAIL REMOVED> > wrote:

> Hi:
>
> Would you really want that to happen? If you had ten edit fields and you allowed the enter key to evoke a submission on the first field, there would be obvious issues. I realize that client side and or server side validation would or could intercept such behaviour but it would be a poor design from the word go....
>
> Jim
>
>