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.
Is there a way add placeholder text and get rid of the label titles. Also is there a way to re-arrange the order of my fields?
Comment | File | Size | Author |
---|---|---|---|
#7 | placeholder_text_and-2152701-7.patch | 499 bytes | helmo |
#4 | placeholder_text_and-2152701-3.patch | 507 bytes | helmo |
Comments
Comment #1
lasseitorp CreditAttribution: lasseitorp commentedAny news on this? Is this on the Drupal or MailChimp side of things?
Comment #2
sui_page CreditAttribution: sui_page commentedI ended up using the embed code supplied from the Mailchimp website instead. I find it's more flexible and you can easily move HTML around and add any placeholders
Comment #3
helmo CreditAttribution: helmo at Initfour websolutions commentedHere's a patch that adds a placeholder attribute.
I had the configuration for this in a feature, making it easy to add a line in the 'mergefields' array.
Like:
"placeholder" : "First name*",
Hiding the regular label can be done with CSS, e.g. "display: none;" on #block-something label
Comment #4
helmo CreditAttribution: helmo at Initfour websolutions commentedComment #5
nlarow CreditAttribution: nlarow as a volunteer commentedIs there a way add placeholder text?
Looks like helmo handled that..
..and get rid of the label titles?
For the form/entry itself, this is easily accomplished via CSS per the previous comments.
However, if you're talking about removing it from email/notifications, you either hard-code the labels/tokens manually into a email template and use MimeMail, or in my case.. I created an entire new theme just for "Viewing" submissions that outputs the "Submission" as valid XML with massive edits to the field.tpl. I then used the ThemeKey module to have it switch templates when viewing submitted data. This allows us to use submissions to import data into a customized CRM.
Also is there a way to re-arrange the order of my fields?
Under "Manage Display" you can change the output/order, as well as other options on how to output the values.
Comment #6
ruscoe CreditAttribution: ruscoe at ThinkShout commentedWe're going to be ending support for the 7.x-3.x branch due to the upcoming deprecation of the v2.0 MailChimp API. If you'd still like to do this, please feel free to reopen for the 7.x-4.x branch.
Comment #7
helmo CreditAttribution: helmo at Initfour websolutions commentedRe rolling the patch on 4.x was trivial :) here it is.
However I also found #2754819: Allow use of HTML5 placeholder attribute which looks like it's solving the same thing ... So leaving this closed until I've had time to review that issue's patch.