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.
It would be nice to have placeholders in the text fields for those who use them in other Forms.
Comment | File | Size | Author |
---|---|---|---|
#7 | addressfield.placeholder_v2.patch | 700 bytes | jmary |
#4 | addressfield.placeholder.patch | 507 bytes | bgilhome |
Comments
Comment #1
MarioBrus CreditAttribution: MarioBrus commentedComment #2
rszrama CreditAttribution: rszrama commentedI don't know what you mean.
Comment #3
danharper CreditAttribution: danharper commentedI think he means like the following modules support.
http://drupal.org/project/field_placeholder
https://drupal.org/project/elements
Cheers Dan
Comment #4
bgilhome CreditAttribution: bgilhome commentedHere's a patch that adds support for Placeholder/Elements module. You could also hide the title via '#title_display' =>'invisible' if desired.
Comment #5
djschoone CreditAttribution: djschoone commentedIf you are using field_placeholder.module the code would be
Comment #6
bojanz CreditAttribution: bojanz commentedComment #7
jmary CreditAttribution: jmary as a volunteer and commentedRemoved some warning due to non-existence of #title key, and added support to mark the placeholder as mandatory so that the label can be set at display:none
Comment #8
kenorb CreditAttribution: kenorb commentedComment #9
SocialNicheGuru CreditAttribution: SocialNicheGuru commentedcould support be added for field_placeholder also?
Comment #10
ShaneOnABike CreditAttribution: ShaneOnABike at Bees on a Bike commentedI can confirm this worked great for me.
Comment #11
ShaneOnABike CreditAttribution: ShaneOnABike at Bees on a Bike commentedIs it possible to push this into the latest dev