Drupal 7 Webform:如何根据其他选择选项字段显示/隐藏某些字段
我正在使用 Drupal -7 和 webform ..我需要根据选择选项显示/隐藏不同的字段。 例如。 请选择“项目类型”选项
如果我选择“项目类型”为 A =>, 我想显示 field1、field2 和 select-option3
如果我选择“项目类型”为 B =>, 我将只显示 field3、field4 和 select-option4,
其余所有字段都会在这两种情况下显示。
我无法使用网络表单条件,因为它不适用于选择其他。 任何人都可以帮助我处理网络表单中“Hook”或“Markup”字段的代码。
I am using Drupal -7 and webform .. I need to show/hide different fields based on on select option.
for eg. select option "Project type"
if I select "Project type" as A => I want to display field1, field2 and select-option3
if I select "Project type" as B => I will display only field3, field4 and select-option4
rest all fields will be displayed in both the cases.
I cant use webform conditional as it doesn't work with select Other.
Can anyone help me with the code either "Hook" or "Markup" field in webform.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
查看 Webform Conditional 模块。这里有一个演示 https://www.youtube.com/watch?v=7uxfqJr6K6U 它可以向您展示它有什么能力来验证这就是您正在寻找的东西。
Look into the Webform Conditional module. There's a demo here https://www.youtube.com/watch?v=7uxfqJr6K6U which can show you what it's capable of to verify that this is what you're looking for.