Describing Field Errors Inline

A form error should identify the affected control and state what must change. It can also be recorded in an overall summary.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Trace a count failure
  2. Check the corrected result

Trace a count failure

For a submitted quantity of zero, a message can state that one through ten are allowed. Linking the message programmatically to the control gives useful context when focused. Field errors preserve that association from application data.

Check the corrected result

Keep unrelated valid values in the form and remove the error when it is repaired under the documented workflow. Preserving a draft supports that recovery.[1][2]

References

  1. W3C, Web Content Accessibility Guidelines 2.2 ↩
  2. W3C Web Accessibility Initiative, Forms Tutorial ↩