alert-circle An exclamation point inside of a circle. alert-triangle An exclamation point inside of a triangle shape. arrow-down-left An arrow pointing down and to the left. arrow-down-right An arrow pointing down and to the right. arrow-down An arrow pointing down. arrow-left An arrow pointing left. arrow-right-thick A thick arrow pointing right arrow-right An arrow pointing right. arrow-up-left An arrow pointing up and to the left. arrow-up-right-thick A thick arrow pointing up and to the right arrow-up-right An arrow pointing up and to the right. arrow-up-thick A thick arrow pointing up arrow-up An arrow pointing up. award A award bell A bell. calendar A calendar icon. camera-off A camera that is deactivated. camera A camera. check-circle A checkmark in a circle. checkmark A checkmark. chevron-down A chevron arrow pointing down. chevron-up A chevron arrow pointing up. chevron A chevron arrow pointing down. chevron A chevron arrow pointing down. chrome Chrome browser logo. close-circle An x in a circle. close A x shape. door A car door. edge Edge browser logo. ellipses An ellipses shape. engine A car engine. envelope A closed envelope. explorer Internet explorer logo. eye-off An eye that is deactivated. eye An eye. facebook Facebook logo. file-text A piece of paper with lines on it. file A blank piece of paper. firefox Firefox browser logo icon-flame A flame. fwd A car drivetrain. gear A gear with multiple teeth. grid A 2x2 grid. heart An empty heart. height-width Arrows indicating height and width measurement. home A home icon. info THe letter i in a circle. instagram Instagram logo. link A chain link. linkedin Linkedin logo. map-marker A map marker pin. maximize Four corners containing a plus sign. menu Three lines signifying a menu. message-circle A speech bubble. minus A minus dash. mpg A car dashboard gauge. opera Opera browser logo. pause A pause symbol. pencil A pencil. phone A phone handset. pinteest-disc Pinterest logo in a disc. pinterest Pinterest logo. play A play button. plus A plus symbol. safari Safari browser logo. search A magnifying glass. seat A car seat. shield A shield sliders A group of control sliders. square A square with rounded corners star A star. tag A shopping tag. thumbs-down A hand with the thumb pointing down. thumbs-up A hand with the thumb pointing up. trash A trash can. trophy A trophy. truck A truck icon. twitter Twitter logo. user-circle An outline of a person in a circle. user An outline of a person. video A video camera. youtube Youtube logo. zoom-in A magnifying glass with a plus in the center
Spark logo Spark Design System
Accessibility

Form errors

Provide accessible error handling

Back to the a11y checklist

Why it matters

Providing information about how to avoid and correct input errors allows users who have learning disabilities to fill in a form successfully. Users who are blind or have impaired vision understand more easily the nature of the input error and how to correct it. People with motion impairment can reduce the number of times they need to change an input value. Never rely solely on color to indicate errors. Best practices are to provide multiple cues when identifying errors (e.g., in addition to describing the error in text, the fields in error are highlighted).

WCAG 2.0 reference: 3.3.3 Labels or Instructions, 3.3.6 Error Prevention, 3.3.1 Error identification, SC 3.3.3 Error suggestions

Example

Bad error formatting:

Example of bad error handling

Good error formatting:

Example of good error handling

How to check for this

  1. Check that concise and specific text information is provided to help people avoid, understand and fix the error in a way that is easy to understand for everyone. If the error concerns a format such as date, time, or address, check that the format requirement is clearly explained. Manual
  2. Check that the item that is in error is visually identified/highlighted. Manual
  3. Check that the errors are easily findable (before the form or inline). Manual
  4. Check that each error listed references the label of the corresponding form control, to help users recognize the control. Manual
  5. Check that the fields without errors are still populated with the data entered. Users should not have to re-enter all the information in the form, except for some sensitive data such as credit card numbers. Manual
  6. Guidelines for listing a set of errors at the top of the page. Manual
  7. Guidelines for inline feedback and errors. Manual

Collaborators

  • Should there be any instructions or error messages missing or unclear, reach out to your Designer.

Resources