Overview of Error Identification

Purpose

When a form has been filled out incorrectly, an error message should be generated so that people can determine what is wrong. The message should be clear, concise, and specific. It should identify which required fields were not completed, and/or if any input fell outside of the required format for a given field. This can be done using client-side validation, with an alert dialog box pointing out the neglected fields. It can also be done using server-side validation, and redisplaying the form with errors identified.

Error messages should be announced in two ways:

  • Visually, via text onscreen
  • Programmatically, via site code

The latter ensures that a screen reader will immediately announce any errors. Without it, only people who can see the screen will immediately know that an error has been made. People who use screen readers may have to navigate through an entire page before finding the error message. They should receive the message immediately after submitting the form.

How to Test

Best Practices

Exceptions

Design option is to not enable a “Submit” button until all form controls have valid entries. This removes the requirement to have a error message announced but still requires form controls to express their invalid state if an error was identified.

References

Understanding Success Criterion 3.3.1 Error Identification


Table of contents