Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
Problem/Motivation
Fields can't have an input purpose.
Documentation: https://www.w3.org/TR/WCAG21/#identify-input-purpose
Proposed resolution
Extend the field instance with a option to add or choose an input purpose with the result that an input field can autocomplete the needed value.
Remaining tasks
- Write a patch for Webform
- Write a patch for all Fields
- Review
- Write a test
User interface changes
- The field config in webform will be extended with new options.
- The field formatter will be extended with new options.
API changes
None
Data model changes
None
Release notes snippet
Todo
Comments
Comment #2
Tess BakkerA plugin for adding autocomplete attributes to widgets is on its way.
Comment #4
Tess BakkerComment #5
Tess BakkerClosing issue in favor of new issues.
Comment #6
rachel_norfolkretagging