Drupal 7 Webform : How to display/hide some fields based on other select option fields

rinku picture rinku · Jun 9, 2011 · Viewed 19.7k times · Source

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.

Answer

nmc picture nmc · Jun 22, 2011

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.