Hi,
Anyway to show the Node element inside the email as well?

Thanks!

Comments

cafuego’s picture

Assigned: Unassigned » cafuego
Category: support » feature
Status: Active » Needs work

Hmm... 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.

shadowdknight’s picture

Alright then.

Thanks for your help!

cafuego’s picture

Status: Needs work » Needs review

Fixed in git 7.x-1.x, please test :-)

shadowdknight’s picture

Thanks 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!

cafuego’s picture

The 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-value

Please 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)

shadowdknight’s picture

Status: Needs review » Closed (fixed)

Thanks 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