Book Image

Drupal 7 Webform Cookbook

By : Vernon Denny
Book Image

Drupal 7 Webform Cookbook

By: Vernon Denny

Overview of this book

<p>The Drupal Content Management System puts everyone in charge of their own internet destiny. Webform takes this power a step further by ensuring that you are never more than just a few mouse-clicks away from fully functional information-gathering forms. From simple contact forms to advanced web applications, Webform provides a solid tool set for both the novice and the expert.<br /><br /><em>Drupal 7 Webform Cookbook</em> gives you everything you need to achieve in minutes what previously cost hours in development and testing. Practical demonstrations of every facet give both the technical and the not-so-technical users an in-depth understanding of how things work.<br /><br />Install. Use. Customize. Extend. A mammoth learning curve devoured in small bytes: all digestible, with no choking.<br /><br />From designing coherent forms, to sending pretty HTML emails and managing data, explore the rich scope of possibilities that Webform enables. Also, easily extend and tune Webform with custom components and functionality.<br /><br />With <em>Drupal 7 Webform Cookbook</em> you are placed firmly in the driving seat.</p>
Table of Contents (18 chapters)
Drupal 7 Webform Cookbook
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface

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. 1. On the components overview page, drag the empty component row up to just above First name in the Speaker Details fieldset.

  2. 2. Add a mandatory Select options component with the name of title.

  3. 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. 4. In the Display section of the settings we need to check the Listbox option before saving the component.

There's more...

The options as we have entered them previously tell Webform two things about each option. The first section to the left of the pipe separator is the internal...