I can't find how to include Submission ID to e-mails, can't find it in Token values of E-mail templates.

Comments

quicksketch’s picture

Status: Active » Fixed

There is no %sid token currently. See the feature request at #828566: Webform Token support on confirmation message.

nilard’s picture

It seems so long work on that issue, and I see no progress for last time. It would be better to quickly add very useful token [%sid] to the current functionality, and continue work on that issue.

joehudson’s picture

I had the same need (and also for the webform nid), relating to http://drupal.org/node/1084594
I simply added:

    $replacements['email'][$format]['%sid'] = $submission->sid;
    $replacements['email'][$format]['%nid'] = $node->nid;

in the _webform_filter_values function in webform.module, right after:

$replacements['email'][$format] = array();

pretty straight forward. works for me.

nilard’s picture

I have to make such hack too, but It's a bad way.

Status: Fixed » Closed (fixed)

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