营销人员的Web表单可动态形成条件可见性字段 [英] Webforms for marketers form fields conditional visibility dynamically
问题描述
我们正在使用WFFM创建登陆页面.对于我们的营销人员来说,使用它非常容易.现在,我们正在考虑自定义它们.例如,我们有以下要求.
We are using WFFM for our landing pages creation. It is very easy for our marketing guys to use that. Now, we are looking at customizing them. For instance, we have the following requirement.
在表单上,我们显示居住国,但是当您选择某些国家/地区时,我们想显示一个名为state/province
的下拉菜单,其中包含州名.当用户选择其他国家/地区时,我们必须隐藏state/provice
字段.我正在head头,该如何开始实施呢?
On our form, we display country of residence, but when you select some countries, we want to display one more dropdown called state/province
with the states. When user selects other countries, we have to hide the state/provice
field. I am banging my head, how can I start implementing this.
任何人都可以指导我,如何进行?
Can anyone of you guide me, how to proceed?
推荐答案
尝试以下操作:
- 在Sitecore中的表单上创建一个
DropList
字段 - 添加一个名称类似于"NA"的选项(表示不适用")
- 将字段标记为必填
- 单击左侧窗格规则"下的编辑"按钮
- 在左侧框中,向下滚动到字段"类别,然后将相关信息输入到特定于 字段与特定值进行比较
- 在右侧框中,在操作"类别下选择隐藏元素"
- Create a
DropList
field on your form in Sitecore - Add an Option named something like "NA" (signifying "Not Applicable")
- Mark the field as required
- Click on the "Edit" button, under "Rules" in the left pane
- In the left box, scroll down to the "Fields" category and enter the relevant information into the "where specific field compares to specific value
- In the right box, select "hide element", under the "Actions" category
这篇关于营销人员的Web表单可动态形成条件可见性字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!