Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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.

like image 464
rinku Avatar asked Jun 09 '11 07:06

rinku


1 Answers

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.

like image 158
nmc Avatar answered Oct 20 '22 05:10

nmc