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 have a markup field which I'm using to generate a value from php (as far as I know one can't use php in any other of weform's fields). I have checked the 'Include in e-mails' box under advanced settings for this field, but it does not appear in the email that gets sent to me.
Is this a bug, or desired behaviour? Could it be because I am using the form with the 'node as a block' module?
Comment | File | Size | Author |
---|---|---|---|
#3 | webform-5.x-2.3-hide_markup_send_to_email_checkbox-339700-3.patch | 667 bytes | foxtrotcharlie |
Comments
Comment #1
quicksketchThe "Include in e-mails" box should not be an option for markup components as they shouldn't be included in e-mails by design. If you need to create custom code within an e-mail, you should theme the e-mail that is sent. So this is a bug, in that we need to remove that checkbox, since it doesn't have any effect.
Comment #2
foxtrotcharlie CreditAttribution: foxtrotcharlie commentedThanks quicksketch. I'll look into creating a patch for this.
Comment #3
foxtrotcharlie CreditAttribution: foxtrotcharlie commentedAttached patch to not display the "Include in e-mails" checkbox for the webform markup field component. Markup field should not be included in e-mails by design. Patch prevents the component type 'markup' from displaying this checkbox in a similar manner to the way that the pagebreak and fieldset components are excluded.
This is a patch for webform module 5.x-2.3. For 6.x-2.3 patch, see this node: http://drupal.org/node/341456
Comment #4
foxtrotcharlie CreditAttribution: foxtrotcharlie commentedChanged to unassigned. For some reason I assigned it to myself, but I can't review my own patch.
Comment #5
quicksketchThanks foxtrotcharlie! I much appreciate the patches! I committed to both Drupal 5 and 6.
Comment #6
foxtrotcharlie CreditAttribution: foxtrotcharlie commentedAbsolute pleasure - was my first patch ever so I'm really stoked!
Comment #8
quicksketchSlightly better title for the 2.4 release.
Comment #9
geerlingguy CreditAttribution: geerlingguy commentedIs there any documentation on how to theme an email Webform sends out? I've had some trouble with figuring this out...
Comment #10
czeky CreditAttribution: czeky commentedwebform_components.inc,v 1.1.2.44 2009/11/06 00:25:46
hi, got this version, seems it's already in the code, but I cant get markup in email, no select box appears (other components are okay and have "E-mail" select box visible, I would really like to have possibility to output markup in email
thanx a lot, so much use of this module!