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

Cloning components


For the sake of uniformity in the presentation of our form we will clone the First name component to create a Last name component with similar settings.

How to do it...

Cloning is the act of making a copy of something. Let's take a look at how we may copy existing components to save ourselves some work:

  1. 1. On the Form components overview page, click on Clone under Operations adjacent to First name.

  2. 2. On the new component's settings page we change the Label to Last name and change the field key to last_name.

  3. 3. Finally, we can click on Save component.

How it works...

Cloning is a useful time saver when we need to have more than one component of a given type with similar settings.

There's more...

The clone operation makes a carbon copy of an existing component and requires us to specify at least a new field key for the new component. The new field key will allow the system to differentiate between the two components, that is, the original and its twin.

The label may be left...