O'Reilly logo

Drupal 7 Webform Cookbook by Douglas Vernon Denny

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Defining same-page conditional fields

Webform does offer conditional fields, but only on multipage forms. Any component we wish to make display under specific conditions can only be configured to do so based upon the value in a component from a preceding page.

The Webform Conditional (Same Page Conditionals) module delivers this dynamism by operating with components grouped on any given page. Using select components as the driver, we may specify conditions under which certain fields should display, and others should be hidden.

Getting ready

We need to install a module before we can enable and use it. Let's navigate to the Webform Conditional homepage at http://drupal.org/project/webform_conditional and download the latest 7.x version. The compressed ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required