营销人员的网络表单动态地形成字段条件可见性
我们使用 WFFM 来创建登陆页面。我们的营销人员很容易使用它。现在,我们正在考虑定制它们。例如,我们有以下需求。
在我们的表单上,我们显示居住国家/地区,但当您选择某些国家/地区时,我们希望再显示一个名为 state/province
的下拉列表以及各州。当用户选择其他国家/地区时,我们必须隐藏 state/prove
字段。我很头疼,我该如何开始实施呢?
你们中的任何人都可以指导我如何进行吗?
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.
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
尝试以下操作:
DropList
字段Try the following:
DropList
field on your form in Sitecore我在 Sitecore 7.5(修订版 141003)上使用此功能时遇到问题。
我还没有尝试过以下说明,但这是我最终从 Sitecore 支持获得的信息:
看起来报告的行为是由先前注册的参考号为 67793 的错误引起的。有关公共参考号的更多信息可以在此处找到:
https://kb.sitecore.net/articles/853187
请尝试应用以下补丁来查看如果有帮助:
将附加的“Sitecore.Support.401148.dll”程序集放入“\bin”文件夹中。
更改项目信息规则的类型字段值(规则内容路径 -> 类型字段值):
/ sitecore/系统/设置/规则/定义/元素/项目信息/项目 ID -> Sitecore.Support.Rules.Conditions.ItemConditions.ItemIdCondition,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/项目信息/项目名称 -> Sitecore.Support.Rules.Conditions.ItemConditions.ItemNameCondition,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Item Information/Item Template -> Sitecore.Support.Rules.Conditions.ItemConditions.WhenTemplateIs,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Field -> Sitecore.Support.Rules.Conditions.FieldConditions.WhenField,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Field 为空 -> Sitecore.Support.Rules.Conditions.FieldConditions.FieldEmpty,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Has Specific Field Type -> Sitecore.Support.Rules.Conditions.FieldConditions.WhenHasSpecificFieldType,Sitecore.Support.401148
I had problems getting this working on Sitecore 7.5 (rev. 141003).
I have not tried the following instructions out yet, but here is what I eventually was able to get from Sitecore support:
It looks like the reported behavior is caused by the previously registered bug with the 67793 reference number. More information about public reference numbers can be found here:
https://kb.sitecore.net/articles/853187
Please try applying the following patch to see if it helps:
Put the attached "Sitecore.Support.401148.dll" assembly into the "\bin" folder.
Change the type field values for item information rules(rule content path -> Type field value):
/sitecore/system/Settings/Rules/Definitions/Elements/Item Information/Item ID -> Sitecore.Support.Rules.Conditions.ItemConditions.ItemIdCondition,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Item Information/Item Name -> Sitecore.Support.Rules.Conditions.ItemConditions.ItemNameCondition,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Item Information/Item Template -> Sitecore.Support.Rules.Conditions.ItemConditions.WhenTemplateIs,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Field -> Sitecore.Support.Rules.Conditions.FieldConditions.WhenField,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Field is Empty -> Sitecore.Support.Rules.Conditions.FieldConditions.FieldEmpty,Sitecore.Support.401148
/sitecore/system/Settings/Rules/Definitions/Elements/Fields/Has Specific Field Type -> Sitecore.Support.Rules.Conditions.FieldConditions.WhenHasSpecificFieldType,Sitecore.Support.401148