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

Creating a new select component

First up, we are going to add a new select listbox component to our form which will be used to indicate whether a particular submission has been previously flagged as declined.

How to do it...

To add a component to our form we need to be logged in to our site, navigate to our Speaker Registration form, and click on the Webform tab. By default, we should now see the Form components page.

  1. Scroll down to the textfield containing New component name and give the new component the name of Status.
  2. In the component type listbox we select Select options and click on Add.
  3. Enter the word Accepted as the Default value.
  4. In the Options textarea we specify our two status options as Accepted|Accepted on the first line and Declined|Declined ...

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