Picto thématique

Rule n° 77 - If any data entered in the form are rejected, the fields containing the rejected data are indicated for the user.

Filling in a form is not always an easy task: save your users the trouble of having to search for their mistakes as well.

#Forms #Development #Accessibility

Goal

  • Provide feedback to users on the actions they just performed.
  • Guide users directly to the items with which they must interact.
  • Improve the accessibility of content for people with disabilities."

Implementation

Include at the beginning of the form a message indicating that all or part of the fields require a correction of the previous input. Also indicate this information in the title element of the page.

Optionally add to the message at the beginning of the form the list of fields to be corrected.

Indicate explicitly in the label of each relevant field that it must be corrected.

Control

For each form:

  • Submit various possible errors in each form such as failure to enter a mandatory field, non-compliance with a requested or predictable format (email address format, date, etc.), case sensitivity.
  • Then, check that the user is informed of errors to be corrected at least in the title element of the page and that each erroneous field is reported via its label.

By Opquast - Read the license