Drupal - Webform组件值的令牌 [英] Drupal - Tokens for Webform Component Values

查看:119
本文介绍了Drupal - Webform组件值的令牌的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法设置Webform,以便我可以将组件字段提交到令牌以供提交电子邮件中使用?

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?

例如,我想在电子邮件主题行中包含来自[电子邮件地址]的邮件。默认选项仅允许仅包含电子邮件中的组件字段(主题:[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.

有没有办法可以将组件字段提交到电子邮件中使用的令牌?看起来有一个将webform项目转换成标记的模块,但它不能在Webform中使用。

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.

推荐答案

每当你想获得提交的字段值时,%value [key] 我从一个随机的搜索中找到它,把我带到这里: http://drupal.org/node/1010648
感觉像%value [key] 应该在webform管理界面的电子邮件部分的令牌帮助字典中,这是一个笨蛋找到。

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.

这篇关于Drupal - Webform组件值的令牌的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆