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 a date component

Obviously it would be handy if our Fictitious Conference organizers knew when our registering speakers would be arriving for the conference. Without this information they would not be able to ensure that suitable accommodation is available and so forth.

How to do it...

Before we add the date component, let's add a fieldset called Arrival details to house the speaker's planned arrival date and time fields that we're about to create.

  1. Enter the new component name as Arrival date and select Date from the component type list. As this is the required information, we check the Mandatory box before clicking on Add.
  2. For the Default value we enter the value today. As we have chosen to use a relative date (that is, today, whenever that ...

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