Is there a feature in the webform to build the components per role. I want to have certain fields visible only for certain user roles. Is this possible? if so how?

Events happening in the community are now at Drupal community events on www.drupal.org.
pgandham's picture

Comments

show webform components by role

schiavone's picture

You can override the form elements using the Form API and check for user roles then.

Specific fields per user role

sjiuh's picture

It is possible to do this with a combination of modules:

  • Core profile module to define fields etc.
  • autoassignrole module to automatically define a user role depending on the URL. e.g.
    user/coach/register automatically defines a user profile with the role coach.
  • Profile_role the combines the two. You can define fields for specific user roles.

if the last modules don't communicate like described patch as described:
http://drupal.org/node/431454

Washington, DC Drupalers

Group organizers

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: