Goal
- Ensure that forms are understandable in a screen reader.
- Inform the user about actions that are possible or unavailable while filling out a form.
Implementation
- Do not use the
disabled
attribute to disable the submit button. - Use the
aria-disabled=“true”
attribute on the button element, accompanied by thearia-describedby
attribute to explain the status of the button. - Use JavaScript to block the button action and provide an informational message to the user.
Control
Verify that buttons that are disabled during input do not use thedisabled
attribute, and that they are correctly rendered in a screen reader in a comprehensible manner.
Discover Opquast training and certification
The objective of these rules and the Opquast community mission is ‘making the web better’ for your customers and for everyone! Opquast rules cover the key major areas of risk that can negatively affect website users such as privacy, ecodesign, accessibility and security.
Opquast training has already allowed over 19,000 web professionals to have their skills certified. Train your teams, contact us
We offer a 1 hour free discovery module.