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

Limiting submissions

In certain situations, such as when conducting surveys or accepting competition entries, for example, we may wish to limit the number of submissions that a form user may make. Webform offers some methods for preventing folk from putting through multiple submissions, but it must be said that these methods cannot be guaranteed to be bullet-proof for anonymous users.

How to do it...

Under the heading Submission limit on the Form settings page, we specify that our users are limited to making only one submission by entering Limit to 1 submission(s) ever. In this way we can prevent users of our Speaker Registration form from submitting more than one entry.

How it works...

In the case of registered and logged-in site users, Webform ...

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