Barrierepruefung.de Web Accessibility Checker

WCAG 3.3.3 Error Suggestion: explained simply

If an input error is detected automatically and suggestions for correction are known, they must be provided to the user. The exception is where this would jeopardise the security or purpose of the content.

Last reviewed: Sources

What does the criterion require?

"Invalid entry" says that something is wrong but not what would be right. So the criterion requires that if the site detects an input error automatically and suggestions for correction are known, it provides them to the user.

An input error, as the standard defines it, is information that is not accepted: required information that has been left out, or information outside the required format or the allowed values.

People with cognitive limitations may find it difficult to work out from an error message what to change. People with visual disabilities may not be able to figure out how to correct the error. People with motion impairments have to retype less often if they know at once what is expected. And people who are unsure may abandon the form.

When does it apply, and when not?

  • Only to errors detected automatically. If the page does not check an entry, it need not suggest anything.
  • Only where suggestions are known, meaning the page knows or can derive the correct input. The Understanding document groups the techniques into two situations: a field requires a specific format, or it accepts only a limited set of values.
  • Not where security or purpose would be jeopardised. A login form need not reveal which password belongs to the account.

The description may come from the browser if it derives it from information in the code of the page. Under 3.3.1 Error Identification, however, the Understanding document points out that browsers' default messages are often quite generic and may not conform to 3.3.3.

The line between the two criteria: 3.3.1 requires the error and the field to be identified, 3.3.3 the way to correct it. A good message does both in one sentence. Whether it is announced without receiving focus is the subject of 4.1.3 Status Messages.

The W3C describes what suggestions can look like:

  • An example or a description. The message gives an example of a correct entry, describes it, or shows similar valid values (G85).
  • A list of allowed values. If a field requires the name of a month and someone enters "12", the page can list the twelve names or ask "Do you mean December?" (an example from the Understanding document). Under G84 the text includes the list if possible, or suggests the most similar value.
  • Suggestions to choose from. For a misspelt place name, similar places are offered (G177).

An alert dialog (role="alertdialog") that receives focus is one of the techniques as well, provided it says how to fix the error (ARIA18).

Common failures

The W3C lists no failure technique for this criterion. These cases result from the requirement and the techniques above:

  • Withholding the format. A field accepts phone numbers only without spaces and merely reports "Invalid phone number".
  • Withholding the rules. "Username not allowed", although the site accepts only letters and digits and could say so.
  • Withholding the limits. "Quantity not allowed" instead of "Order between 1 and 50 items".
  • Withholding the options. An appointment booking rejects a day and knows which days are free, but neither names them nor points to them.

Checked automatically and checked by you

What the automated check detects

The automated check does not measure this criterion. It is covered by a question in the manual checks.

What you check yourself

You answer this question in the manual checks of your scan.

Are form errors understandable and accessible?

  1. Submit a form with a deliberate error: a required field left empty, an invalid email address, a wrong date.
  2. Check that the field in error is named and the error is described in words, not only by a red border or an icon.
  3. Check that the message says how to fix the error, for example the expected format ("Please enter the date as DD.MM.YYYY"). A suggestion is only expected where one is known and giving it does not undermine security or purpose: for a login, "username or password wrong" is enough, and for test questions the correct answer must not be revealed.
  4. Repeat the test with errors in two fields at once: every field in error must be named and its error described in text. A collective message such as "Please check your input" that names no field is not sufficient.

Classification

Level
AA
Introduced in
WCAG 2.0
W3C explanation
Understanding 3.3.3