The %email_values in the E-MAIL TEMPLATE prints nothing UNLESS either %email[x] or %value[x] is also included. If at least one %email or %value is present, then %email_values appears to print correctly.

Comments

quicksketch’s picture

Status: Active » Closed (fixed)

The default template doesn't include any %email[x] or %value[x] tokens, but %email_values clearly works in the default template. I couldn't find anything in the code that would cause the described problem to occur. Perhaps this was already fixed since beta5. Please reopen if this problem exists in the latest version of Webform 3.x.

evelien’s picture

Version: 6.x-3.0-beta5 » 6.x-3.4
Status: Closed (fixed) » Active

error is still there, using 6.x-3.4

evelien’s picture

Found out what happens:

My form has 3 elements, all part of one group.
At e-mailsetting at the bottom you can choose which elements to print within the e-mails.
I did select all three of them, but didn't select the groupname. If I select the groupname, the problem disappears. Strange.

quicksketch’s picture

If I select the groupname, the problem disappears. Strange.

It's not that strange, I though that Webform even included JavaScript to make it apparent that if you don't select the parent group, none of the children are displayed either. This is the intended functionality.

quicksketch’s picture

Status: Active » Closed (fixed)
Draco’s picture

Version: 6.x-3.4 » 6.x-3.14
Status: Closed (fixed) » Active

I have a template

<?php print t('Submitted on @date', array('@date' => format_date(time(), 'small'))) ?>

<?php if ($user->uid): ?>
<?php print t('Submitted by user: @username [@ip_address]', array('@username' => $user->name, '@ip_address' => $ip_address)) ?>
<?php else: ?>
<?php print t('Submitted by anonymous user: [@ip_address]', array('@ip_address' => $ip_address)) ?>
<?php endif; ?>


<?php print t('Submitted values are') ?>:
%email_values
<?php print t('The results of this submission may be viewed at:') ?>
%submission_url

In email I have missing %email_values

Email:

Submitted on 2011-11-16 20:02
Submitted by user: developer [XX.XX.21.218]

Submitted values are:


The results of this submission may be viewed at:
http://mysite.com/node/341/submission/1529

%email_values missing..

I upgraded from version 6.x-2.9 to 3.14

quicksketch’s picture

Category: bug » support

I can't reproduce a problem on the current release (or any recent releases) so I'm moving this to a support request. @Draco did you figure out the problem?

quicksketch’s picture

Status: Active » Closed (cannot reproduce)

Closing after lack of activity.

christiemade’s picture

This is happening to me, too!

Started after upgrade to 6.x-3.18. Emails come through with empty space for %email_values.
Not using any special templates ("Default Template" is set).

Adding %email[x] with any existing variable to the top of the Email Template box solves the problem. But obviously you shouldn't have to do that and something else is wrong here.