Conditionals of a User Role I have a webform where there are conditional elements that are reliant on the user being a bona fide affiliate of our organisation. Both Anonymous and Authenticated users can use this form.

I currently have it using the CiviCRM elements to look for an existing contact in order to fulfill the conditional; however we have found that if we have had contact with the user (ie they previously were bona fide, or have submitted other forms in the past) then the conditional is fulfilled. 

(Yes, that is kind of obvious.... we overlooked it)

I think I have three options; 


Have a webform field, hidden, pertaining to the user role. this can then be used as a conditional.
Use a Workflow Rule to redirect users with particular roles to a different, but identical, webform. Then I would have two webforms each witht eh appropriate elements.
Completely remove the connection to CiviCRM for the webform and rely on our staff to filter the wheat from the chaff.


Option 1 is probably the most logical solution in my mind, but I can not find a way to poll Drupal for the user role.
I'd recommend using hook_form_alter and user_has_role in a custom module. It allows you to alter the form programmatically and perform logic in your hook function so you can access your user's role and modify your fields that way. For example, you could do something like:

function yourmodule_form_alter(&amp;$form, &amp;$form_state, $form_id) {
  if ($form_id=='your_form') {
     global $user;
     if (user_has_role(your_rid)){
       // add the extra field you need here
     }
  }
}


there are many examples on how to modify/add fields in the hook docs link above, plus you can google more tutorials on that.