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.
General information
This module allows you to add attributes to your form elements.
Advantages
- Add additional data attributes from HTML 5;
- Add data-* attributes that are extremely useful, especially for JavaScript developers.
Configuration
You may add attributes two ways:
- In Form components accessing the Form components > Edit
- In Form element accessing the Form settings > ADVANCED SETTINGS
Requirements
This module depends on webform.
More information
- https://developer.mozilla.org/en-US/docs/Web/Guide/HTML/Using_data_attri...
- http://html5doctor.com/html5-forms-introduction-and-new-attributes
- https://www.sitepoint.com/use-html5-data-attributes
- http://html5doctor.com/html5-custom-data-attributes
- https://www.html5rocks.com/en/tutorials/forms/html5forms/#toc-other-form...
- http://updates.html5rocks.com/2015/06/checkout-faster-with-autofill
In the 7.x-2.0 release, we add the following features to improve the module:
- - It's possible to add HTML attributes also in wrapper input.
- - Now you can choose which component you can add HTML attributes.
- - Validate to avoid duplicate keys.
Supporting organizations:
Project information
- Module categories: Content Display, Developer Tools
- 173 sites report using this module
- Created by fadonascimento on , updated
- Stable releases for this project are covered by the security advisory policy.
Look for the shield icon below.
Releases
7.x-2.0
released 6 November 2017
Works with Drupal: 7.x
✓ Recommended by the project’s maintainer.
Development version: 7.x-2.x-dev updated 28 May 2017 at 19:28 UTC