Understanding WCAG SC 3.3.1 Error Identification
3.3.1 Error Identification: If an input error is automatically detected, the item that is in error is identified and the error is described to the user in text. (Level A)
Web is built with multiple components. One of the components to collect the data from the users is forms. When the data entered into these forms don’t meet the requirements of the website the user must be provided with clear way to identify where the error is & should be guided to fix it accordingly. This success criterion states that errors must be presented in text. That doesn’t mean we cannot use other methods of alerting the users that forms failed validation. We can use images, symbols, color in addition to text errors.
The errors presented to the user should be as specific as possible so that users can take necessary action to fix it. A generic error that “this field is required” will not cut out for a lot of disable users. If a form control needs a specific format then it needs to be provided as an instruction to the user before the form is filled or it also can be mentioned in the error message when it fails validation.
Per the definition in WCAG 2.0, an “input error” is information provided by the user that is not accepted. This includes:
- Information that is required by the web page but omitted by the user, or
- Information that is provided by the user but that falls outside the required data format or allowed values.
Points to Ponder
Building accessible forms is a complex topic. There are various ingredients involved to build an inclusive form. Here is a series of articles that will guide you through the process of building accessible forms
- Accessible Forms & Problem with Placeholders
- Accessible Forms & Required Fields
- Best Practices for building Accessible Forms
- Handling Errors in Accessible Forms
Hi Raghvendra,
Could you please little bit elaborate on how it is bad practice “Don’t disable the submit button! Some websites disable the submit button & will only enable it if the form is filled appropriately. This is bad practice.”
Hi Vaibhav,
It is not good to disable the submit button. If the submit button is in disable state we should provide a mechanism to identify the required fields & the fields that failed validation too. Without this critical information users cannot fill forms successfully. Hope this helps & feel free to ask questions & share your thoughts.