5
votes

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.

1
take a look also to Conditional FieldsTayba

1 Answers

6
votes

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.