I can't find how to include Submission ID to e-mails, can't find it in Token values of E-mail templates.
There is no %sid token currently. See the feature request at #828566: Webform Token support on confirmation message.
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.
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.
I have to make such hack too, but It's a bad way.
Automatically closed -- issue fixed for 2 weeks with no activity.
Comments
Comment #1
quicksketchThere is no %sid token currently. See the feature request at #828566: Webform Token support on confirmation message.
Comment #2
nilard commentedIt 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.
Comment #3
joehudson commentedI had the same need (and also for the webform nid), relating to http://drupal.org/node/1084594
I simply added:
in the _webform_filter_values function in webform.module, right after:
pretty straight forward. works for me.
Comment #4
nilard commentedI have to make such hack too, but It's a bad way.