Hi, I am using webform 6.x-3.4 along with webform validation 6.x-1.3 but don't believe this is a validation issue.

I am setting up a custom email template under the 'E-Mails' tab for a type of auto-responder back to the person who has submitted the form to thank them for filling out the form and to include the values of they have submitted. Correct me if I am wrong but if I place the %email_values into the template it is supposed to generate the components of the form BUT only if they are checked in the 'Included e-mail values' section below the template? It says "The selected components will be included in the %email_values token" but I have a component unchecked but it is still being included.

CommentFileSizeAuthor
#3 webform_exclude_email_components.patch695 bytesquicksketch

Comments

bfmuleskinner’s picture

I'm having the same issue.

Sleavely’s picture

I seco... err, third that. We've found that you can circumvent this partially by replacing %email_values with the variables for each of the components you want to include, e.g. %email[personal_details][first_name] %email[personal_details][surname] %email[type_of_lamp]

This, however, is not very intuitive to our junior administrators. I hope this get's addressed soon!

quicksketch’s picture

Title: email_values token still includes components that are not checked » %email_values token includes components that are not checked if sending more than one e-mail
Status: Active » Fixed
StatusFileSize
new695 bytes

I've committed this patch which corrects this problem. The ability to include only certain values in %email_values DOES work, but only on one of the sent e-mails. Whichever e-mail was sent first (not necessarily in the same order that is defined in the UI) that e-mail determined which components were included. Additional e-mails would all follow the first e-mails set of included components.

This patch fixes the problem by not caching the %email_values token and regenerating it for each sent e-mail (as it should, since %email_values is not guaranteed to the be the same for all e-mails).

Sleavely’s picture

I lurb you!

Status: Fixed » Closed (fixed)

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