WebAIM - Web Accessibility In Mind

E-mail List Archives

Re: Required Fields and Username / Password on a Website

for

From: Tim Harshbarger
Date: Jul 25, 2012 9:01AM


Elle,

Perhaps the best way to approach this is by adopting a rule for required and optional fields.

If all fields are required, then there doesn't need to be any indicators next to the fields.
If only some fields are required or optional, then the UI needs to indicate in an accessible manner which fields are either required or optional.
If all fields are optional, then the instructions for the form need to indicate clearly that all fields are optional.

That isn't necessarily written in WCAG 2.0, but it should provide a good consistent rule that you can apply across UI's without too much concern that someone will misuse it and create something that is not consistent with WCAG 2.0.