Drupal 7 Web Form: How to Display / Hide Some Fields Based on Other Selection Option Fields

I use Drupal -7 and webform .. I need to show / hide different fields based on the select option. eg. select the 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 only display field3, field4 and select-option4

other fields will be displayed in both cases.

I cannot use the web form conditionally since it does not work with select Other. Can anyone help me with the code or the Hook or Markup in the web form.

+4
source share
1 answer

Take a look at Webform Conditional . There is a demo here https://www.youtube.com/watch?v=7uxfqJr6K6U , which can show you that he is able to verify that this is what you are looking for.

+5
source

All Articles