Drupal - Tokens for Webform Component Values [closed]

折月煮酒 提交于 2019-12-11 09:49:52

问题


Is there a way to set up a Webform such that I can turn component field submissions into tokens for use in the submission email?

For example, I want to include "Message from [email address]" in the email subject line. The default options only allow for including only the component field in the email (subject: [email]), or only custom text.

Is there a way I can turn the component field submission into a token for use in the email? Looks like there's a module for turning webform items into tokens, but it's not for use within webform.


回答1:


Figured it out - use %value[key] whenever you want to get a submitted field value. I found it from a random search that brought me here: http://drupal.org/node/1010648. Feels like %value[key] should be in the Token help dictionary in the email section of the webform admin UI this was a botch to find.



来源:https://stackoverflow.com/questions/12180871/drupal-tokens-for-webform-component-values

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!