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

Adding select components

It is customary to use people's titles in salutations in correspondence. To enable this on our form we're going to set up a drop-down list of titles for our speakers to select from.

How to do it...

  1. On the components overview page, drag the empty component row up to just above First name in the Speaker Details fieldset.
  2. Add a mandatory Select options component with the name of title.
  3. In the required Options textarea on the settings page, let's enter the following options, each one on its own line. Note that the pipe, that is, the vertical line separating the entries on each line is often found on the backslash key (\) on the keyboard:
    Mr|Mr
    Mrs|Mrs
    Ms|Ms
    Dr|Dr
    Prof|Prof
    Hon|Hon
    Rev|Rev
    
  4. In the Display section of the settings ...

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