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 access to forms

Thanks to Webform's integration with the Drupal user management system, we can quite easily limit form access to particular user roles. Bearing in mind that any one user may belong to one or more roles, we can readily see that it is possible to set up fine-grained access rules for our forms.

Getting ready

A standard Drupal installation comes with two default roles, one for anonymous users (that is, users who are not logged in) and another for authenticated users (that is, registered users who are currently logged in). Authenticated users may be assigned to one or more roles. We may proceed to People | Permissions | Roles to create a new role.

Now, when we go into Edit on any user we see the various role titles accompanied ...

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