WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Error message context for alert after hitting "submit"

for

From: Mark Magennis
Date: Oct 12, 2022 8:38AM


Hi Maia,

I think you're not correct in saying that an error like "This field is required" is sufficiently descriptive if the user tabs away and is notified right away thanks to role=alert.

Usually (always?) the screen reader will announce the alert after reading the name of the field that the user has tabbed into. So for example, when tabbing from a name field to an address field you would hear "Address this field is required". This sounds like it means "address field is required" when in fact it means "name field is required".

Mark