Forma11y
Forma11y enhances web form accessibility by programmatically linking error messages to their corresponding input fields using ARIA attributes. This ensures that assistive technologies, such as screen readers, can clearly announce and associate errors with the correct form elements for a better user experience.
Improve accessibility in your forms by programmatically associating error messages with input fields using aria-describedby and ARIA live region role="alert".
Note:Forma11y helps assistive technology users better understand and interact with inline form error messages.
Once the core issue Programmatically associate error messages with inputs is resolved in Drupal core, this module will no longer be necessary.
Features
- Automatically associates form error messages with the correct input elements using
aria-describedby. - Adds
role="alert"to error messages so they’re announced by screen readers immediately. - Generates unique IDs for error messages to ensure proper referencing.
- Disables HTML5 validation by adding
novalidateto form tags to prevent conflicting browser validation.
Additional Requirements
Inline Form Errors (Core)
Recommended modules
Webform (Contrib)