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
Comment #1
quicksketchThis 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
Comment #2
quicksketchI moved the contents of my previous comment (the second link above) into a permanent handbook page for the future: http://drupal.org/node/1291574
Comment #3
scothiam commentedAwesome! thanks for considering my issue and providing insight. I will look into this, time permitting, and hopefully share my progress.
All the best,
Comment #4
quicksketch