Drupal is a registered trademark of Dries Buytaert

forma11y

8 sites No security coverage
View on drupal.org

Improve accessibility in your forms by programmatically associating error messages with input fields using aria-describedby and ARIA live region role="alert".

Forma11y helps assistive technology users better understand and interact with inline form error messages.

Note:

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 novalidate to form tags to prevent conflicting browser validation.

Additional Requirements

Inline Form Errors (Core)

Webform (Contrib)

Similar projects

A11Y: Form helpers

Activity

Total releases
3
First release
Apr 2025
Latest release
8 months ago
Release cadence
29 days
Stability
67% stable

Release Timeline

Releases

Version Type Release date
1.0.2 Stable Jun 12, 2025
1.0.1 Stable Jun 11, 2025
1.0.x-dev Dev Apr 16, 2025