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

Modifying submitted data

Our demonstration Speaker Registration form requires potential speakers to supply a title for their presentation in the Presentation title textfield. The Fictitious Conference organizers have requested us to ensure that data entered into this field is properly formatted in title case (for example, This Is A Sentence In Title Case), as opposed to the conventional sentence case.

Rather than attempting to enforce this requirement as a validation rule, we have decided to merely apply formatting to the input without informing the registering speakers, since we are not making a material change to their submitted data. Thankfully Webform provides a hook for us to make changes to submitted data rather easily via a plugin custom ...

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