E-mail List Archives
Re: Form validation - on submit or on each required field
From: Paul J. Adam
Date: Jun 26, 2014 12:22PM
- Next message: Bryan Garaventa: "Re: Form validation - on submit or on each required field"
- Previous message: Stanzel, Susan - FSA, Kansas City, MO: "Re: Form validation - on submit or on each required field"
- Next message in Thread: Bryan Garaventa: "Re: Form validation - on submit or on each required field"
- Previous message in Thread: Stanzel, Susan - FSA, Kansas City, MO: "Re: Form validation - on submit or on each required field"
- View all messages in this Thread
It's always best to send focus directly to the errors so the screen reader does not go silent on a bad submit and assume the form is broken.
If you're doing a page reload you could still send focus to them with JavaScript .focus(), make sure the errors are programmatically associated with the invalid inputs also so they hear them when TABing.
If the invalid input has an associated error message you could also use HTML5 autofocus to grab it on page reload.
Paul J. Adam
Accessibility Evangelist
www.deque.com
On Jun 26, 2014, at 12:18 PM, Stanzel, Susan - FSA, Kansas City, MO < <EMAIL REMOVED> > wrote:
> When the errors are returned at the top of the page are they supposed to be read automatically? I am coding JSP with the use of struts. I work at the United States Department of Agriculture.
>
> Susie Stanzel
>
>
- Next message: Bryan Garaventa: "Re: Form validation - on submit or on each required field"
- Previous message: Stanzel, Susan - FSA, Kansas City, MO: "Re: Form validation - on submit or on each required field"
- Next message in Thread: Bryan Garaventa: "Re: Form validation - on submit or on each required field"
- Previous message in Thread: Stanzel, Susan - FSA, Kansas City, MO: "Re: Form validation - on submit or on each required field"
- View all messages in this Thread