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 time component

Adding a time component is every bit as easy, and powerful, as a date component.

How to do it...

Let's add a component enabling our form users to submit a time.

  1. Add a new component name Arrival time, select Time from the component type list, mark it as Mandatory and click on Add.
  2. We enter now as the Default value for our time component and select Website timezone under Default value timezone.
  3. Let's click on Save component and also add this component to the Arrival details fieldset, just as we did with the date component.
How to do it...

How it works...

Time components render with two selection lists, one for hour and one for minute, to enable ...

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