Closed (fixed)
Project:
Webform Node Element
Version:
7.x-1.x-dev
Component:
Miscellaneous
Priority:
Normal
Category:
Feature request
Assigned:
Reporter:
Created:
9 Jan 2012 at 18:51 UTC
Updated:
5 Feb 2012 at 08:07 UTC
Hi,
Anyway to show the Node element inside the email as well?
Thanks!
Comments
Comment #1
cafuego commentedHmm... I take it then that a token is not automagically provided. Yes, it's possible, I just need to find out how and add in the correct code.
That'll take a little while, as I'm in the middle of final preparations for our local Drupal conference and will be at a different conference the week after that.
Comment #2
shadowdknight commentedAlright then.
Thanks for your help!
Comment #3
cafuego commentedFixed in git 7.x-1.x, please test :-)
Comment #4
shadowdknight commentedThanks Cafuego!,
Seems you already commit into last dev too.
I've test and it works on email,
however when I specify the key inside the mail using %value[temp] ,
the content doesnt show up in the email.
Any idea?
Thanks a lot!
Comment #5
cafuego commentedThe field-specific email token is loaded from the form submission. Because the node component data is rendered as #markup it's not saved to the database and thus not available as a token after the fact.
I've now rewritten the node element to instead be a #hidden form field, which is saved to the database. This hidden form field has a field suffix that contains the rendered node content, so it's displayed on the webform as well. I've added a new CSS class on the component as well, so you can theme specifically for
div.webform-component-node span.field-valuePlease let me know how you go. (You may need to grab a copy from git if the 7.x-1.x-dev hasn't updated yet)
Comment #6
shadowdknight commentedThanks Cafuego, the email is working perfect now!
On the side note,I noticed the Label Display inside webform component,
will always show webform label component, even when you select None.
The override title option is working as intended.
Thanks again for spending time in this