Error message cannot be read by screen readers

Link to Error message cannot be read by screen readers copied to clipboard

form-error-unreadable

Rule

Text-based alerts that identify the field in error MUST be provided to users for form validation cues and errors.

Background

When form fields that have an error are not identified with a text-based error message people who are blind or have low vision may not be able to understand that an error has occurred and what went wrong. In order to provide feedback that can be accessed by all users, error messages must be provided in a text format. Error messages must indicate which input is in error - either by the text of the error message or programmatically - and the nature of the error. This will allow people to recover from mistakes while filling out a form.

How to Fix

Fix this issue by ensuring that the error message is not programmatically hidden or otherwise inaccessible.