Hi, I was wondering if anyone has done this and or could suggest how I might accomplish this:

I'm holding 'raffles' using webforms and it would be great if I could provide multiple entires per submission based on user role. So if a guest user fills out the webform they get one 'entry', if an authenticated user filled out the webform 2 entries would be created.

Thanks in advance of any tips.

Cheers

Comments

quicksketch’s picture

Title: duplicate entries by role » Allow multiple entries by role
Category: feature » support

This is possible through another module adding a hook_form_alter() to Webform forms and specifying validation criteria based on a certain role. Unfortunately I don't think this functionality would ever be included in the Webform module directly. There's a good tutorial on how to add additional #validate/#submit handlers here:

http://www.drupalcoder.com/blog/additional-processing-in-drupals-webform...

and here:

#1050656-1: Webform Advanced Settings (Additional Validation & Additional Processing) disappear after upgrade

quicksketch’s picture

I moved the contents of my previous comment (the second link above) into a permanent handbook page for the future: http://drupal.org/node/1291574

scothiam’s picture

Awesome! thanks for considering my issue and providing insight. I will look into this, time permitting, and hopefully share my progress.
All the best,

quicksketch’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.