I am embedding Webforms into parent Webforms to maintain a consistent look and feel across many Forms.

At the end of the process I would like to be able to access the email.address in the embedded form to send an email to the submitter.

Is this possible?

I understand that if email_address was on the main form I could use [submission:values:email_address] in E-mail to address - Custom.

However my email_address is in an embedded Form.
I tried [submission:values:fieldset_formkey:embedded_form_formkey:email_address] but no love!

Devel on a submission shows the email is in an array:
Can I grab it some how? Or do I need to create a token (and how?).

a:12:{s:10:"salutation";s:0:"";s:10:"first_name";s:9:"Dave";s:14:"middle_initial";s:11:"G";s:9:"last_name";s:8:"Jones ";s:9:"address_1";s:5:"123 This Street";s:9:"address_2";s:3:"Apt. 4";s:4:"city";s:4:"Gotham City";s:8:"province";s:20:"Lost Province";s:11:"postal_code";s:7:"S7H 6H6";s:7:"country";s:6:"Canada";s:16:"telephone_number";s:12:"902-555-5555";s:13:"email_address";s:19:"email@notyourdadsproblem.com";}

Thanks All.

Comments

fgjohnson created an issue. See original summary.

Liam Morland’s picture

Status: Active » Fixed

Webforms are not designed to be embedded inside each other. You may be able to do this using a custom hook to grad the needed data. Check your HTML validation. Form elements are not supposed to be nested and things will behave inconsistently if HTML does not validate. Please re-open if you need more help.

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.