It seems that unless a value - and it parent - is specified in 'Include E-Mail Values" in the Webform Emails settings at node/%/webform/emails/%, then even if the token is specified directly in the Email Template, it is not included. This seems to conflict with the descriptive text in the Included E-mail Values fieldset, which says

The selected components will be included in the [submission:values] token. Individual values may still be printed if explicitly specified as a [submission:values:?] in the template.

My work around once I twigged why many emails were arriving with blanks is to go through my webforms and check the INCLUDE ALL COMPONENTS. I suspect that the current outcome is not intended. I hope the screenshots help clarify.

The set up is that i have 4 fields (one, two , three, four) and one fieldset (five). Three and four are children of fieldset five. Unless five and its children are selected, three and four will not be printed when explicitly specified as documented.

In my first test, in email settings, I check one, two and three, but not four or five: expected config, email template. Result is that the email contains only values for one and two, but not three: email result (unexpected).

In the second test I check one, two, three and five workaround config - and I then do get the value for three - intended result in email

Comments

petednz’s picture

xurizaemon’s picture

Title: Included Email Value tokens not included unless checked » Included Email Value tokens not included in template unless checked in configuration
Issue summary: View changes
StatusFileSize
new30.19 KB

Rewrote description to better document how to reproduce the issue.

quicksketch’s picture

Thanks guys for the extremely descriptive bug report. The documentation is indeed the expected behavior, so if the e-mails are not including these tokens we need to adjust the behavior.

quicksketch’s picture

Version: 7.x-4.0-beta1 » 7.x-4.0-beta2
Status: Active » Fixed
StatusFileSize
new1.74 KB

I've committed this patch which builds the submission renderable separately for the "full" version and the one with the components utilized individually. We just released beta2 today, so unfortunately this won't be included until the next release (beta3 or RC1).

Status: Fixed » Closed (fixed)

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

fenstrat’s picture

Version: 7.x-4.0-beta2 » 8.x-4.x-dev
Assigned: Unassigned » fenstrat
Status: Closed (fixed) » Patch (to be ported)

Needs porting to 8.x-4.x.

fenstrat’s picture

Version: 8.x-4.x-dev » 7.x-4.0-beta2
Assigned: fenstrat » Unassigned
Status: Patch (to be ported) » Fixed

Committed and pushed e4ea9a3 to 8.x-4.x. Thanks!

  • Commit 7d09f87 on 8.x-4.x by fenstrat:
    Issue #2182345 by quicksketch: Included Email Value tokens not included...

Status: Fixed » Closed (fixed)

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