营销人员的Webforms动态地形成字段的条件可见性



我们使用WFFM创建着陆页。我们的营销人员很容易使用它。现在,我们正在考虑定制它们。例如,我们有以下需求:

在我们的表单上,我们显示居住国,但是当您选择一些国家时,我们希望再显示一个名为state/province的下拉列表,其中包含各州。当用户选择其他国家时,我们必须隐藏state/provice字段。我在敲我的头,我怎么能开始实现这个

你们谁能指导我,如何进行?

尝试如下:

  1. 在Sitecore
  2. 中创建DropList字段
  3. 添加一个类似"NA"(表示"不适用")的选项
  4. 按要求标记字段
  5. 点击"编辑"按钮,在左侧窗格的"规则"下
  6. 在左侧框中,向下滚动到"Fields"类别,并在"where 特定字段与特定值
  7. 进行比较"中输入相关信息
  8. 在右侧框的"Actions"类别下选择"hide element"

我在Sitecore 7.5 (rev. 141003)上有问题。

我还没有尝试下面的说明,但这是我最终能够从Sitecore支持中得到的:

看起来报告的行为是由先前使用67793参考编号注册的错误引起的。有关公众参考号码的更多资料可在此查阅:https://kb.sitecore.net/articles/853187

请尝试应用以下补丁,看看是否有帮助:

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

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

/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 . itemnameconcondition, sitecore . support 401148

/sitecore/system/Settings/Rules/Definitions/Elements/items Information/items Template -> sitecore . support .Rules. conditions . itemconditions . whentemplateis, sitecore . support . sitecore . support。401148

  • 修改"Fields"规则的type字段值(规则内容路径->"type"字段值):/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 . fielempty, sitecore . support 401148

    /sitecore/system/Settings/Rules/Definitions/Elements/Fields/Has SpecificFieldType -> sitecore . support Rules. conditions . fieldconditions . whenhasspecificfieldtype, sitecore . support 401148

    最新更新