营销人员的网络表单动态地形成字段条件可见性

发布于 2024-12-12 09:25:58 字数 249 浏览 0 评论 0原文

我们使用 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 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

GRAY°灰色天空 2024-12-19 09:25:58

尝试以下操作:

  1. 在 Sitecore 中的表单上创建一个 DropList 字段
  2. 添加一个名为“NA”(表示“不适用”)之类的选项
  3. 将字段标记为必填
  4. 单击下面的“编辑”按钮左侧窗格中的“规则”
  5. 在左侧框中,向下滚动到“字段”类别,然后在“其中特定字段与特定值进行比较”中输入相关
  6. 信息在右边的方框中选择“隐藏”元素”,位于“操作”类别下

Try the following:

  1. Create a DropList field on your form in Sitecore
  2. Add an Option named something like "NA" (signifying "Not Applicable")
  3. Mark the field as required
  4. Click on the "Edit" button, under "Rules" in the left pane
  5. In the left box, scroll down to the "Fields" category and enter the relevant information into the "where specific field compares to specific value
  6. In the right box, select "hide element", under the "Actions" category
看轻我的陪伴 2024-12-19 09:25:58

我在 Sitecore 7.5(修订版 141003)上使用此功能时遇到问题。

我还没有尝试过以下说明,但这是我最终从 Sitecore 支持获得的信息:

看起来报告的行为是由先前注册的参考号为 67793 的错误引起的。有关公共参考号的更多信息可以在此处找到:
https://kb.sitecore.net/articles/853187

请尝试应用以下补丁来查看如果有帮助:

  1. 将附加的“Sitecore.Support.401148.dll”程序集放入“\bin”文件夹中。

  2. 更改项目信息规则的类型字段值(规则内容路径 -> 类型字段值):

/ 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

  1. 更改“字段”规则的类型字段值(规则内容路径 ->“类型”字段值):
    /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:

  1. Put the attached "Sitecore.Support.401148.dll" assembly into the "\bin" folder.

  2. 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

  1. Change the type field values for "Fields" rules(the rule content path -> the "Type" field value):
    /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

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文