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.
I thought it might be a nice feature to optionally be able to automatically use the label (#title property of the form element) as the placeholder. Attached patch adds a configuration form where you can choose to:
- Automatically use the label as a placeholder
- Optionally include/exclude administration page forms for above
Elements that have an explicit #placeholder already will be skipped.
Thanks!
drclaw
Comment | File | Size | Author |
---|---|---|---|
placeholder-use_title-0.patch | 5.23 KB | drclaw |
Comments
Comment #1
chrisck CreditAttribution: chrisck commentedI believe the Form Placeholder module already does this: https://www.drupal.org/project/form_placeholder
Comment #2
drclaw CreditAttribution: drclaw commentedWell how bout that. I'll just close this one... and never speak of it again. =)