Answers.Body: <p>I believe the only way at this time to do this at this time without using (Drupal) Webform is to write custom code.  </p>
  
  <p>For custom code, there are a wide variety of approaches - you can write an extension that uses <a href="http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm" rel="nofollow">hook_civicrm_buildForm</a> (or hook_civicrm_alterContent or hook_civicrm_alterTemplateFile, but IMO these are less elegant).  Or you can put a .extra.tpl file in your template override folder with a jQuery snippet to hide roles on certain events.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-03T16:46:19.267Z
Answers.LastActivityDate: 2015-06-03T16:46:19.267Z
Answers.UserDisplayName: Jon G - Megaphone Tech
Answers.Body: <p>I don't know if this feature will be released one day but I would find it pretty useful.
  You could select a role list base on an event type or template.</p>
  
  <p>However <a href="https://civicrm.org/extensions/event-registration-based-participant-roles" rel="nofollow">this extension</a> just came out a few days after my question, and it could help if anyone is in the same situation.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-06-09T08:01:51.510Z
Answers.LastActivityDate: 2015-06-09T19:54:18.537Z
Answers.LastEditDate: 2015-06-09T19:54:18.537Z
Answers.UserDisplayName: Belgian Larp Federation
Body: <p>I've been using CiviCRM for a few years now, mostly for basic functions (small NPO organizing events).</p>
  
  <p>I'm trying to use a function that seems common to me but I feel that I'm missing something because I can't find any information about it. </p>
  
  <p>I've tried almost everything within the interface. I have no knowledge or experience in coding script or stuff like this. But I can try following instructions.</p>
  
  <p>Here is my case:</p>
  
  <p>Our NPO set up LARP events for everybody.
  -Anyone can register and choose a participant role.
  -We mostly have these possibilities: Player, NPC, Volunteers, Artist, Organizers.
  -Every participant might have custom field related to his (participant) role
  -We'd like to let people choose their role properly instead of batch changing it based on the selected price in the set.</p>
  
  <p>BUT:
  As we also organize other types of event like conferences, where participant roles are not the same.</p>
  
  <p>We would to like to be able to allow registering participants to select a role within a limited list which does not include every role set in CiviEvent
  (How) can we do this?</p>
  
  <p>PS I can give you any details you might find useful.</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-03T12:20:34.283Z
Comments.Text: Hi, is this for paid events or free? are you on drupal/joomla or wordpress? if the first, webform can help you
Comments.UserDisplayName: Xavier
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-06-03T12:23:22.567Z
Comments.Text: This is a paid event on wordpress :)
Comments.UserDisplayName: Belgian Larp Federation
Tags: <civievent><registration><roles>
Title: How can I limit the participant role choice?
ThreadText: # How can I limit the participant role choice?
  
  (Asked by: username_0 on 2015-06-03)
  
  I've been using CiviCRM for a few years now, mostly for basic functions (small NPO organizing events).
  
  I'm trying to use a function that seems common to me but I feel that I'm missing something because I can't find any information about it.
  
  I've tried almost everything within the interface. I have no knowledge or experience in coding script or stuff like this. But I can try following instructions.
  
  Here is my case:
  
  Our NPO set up LARP events for everybody.
  -Anyone can register and choose a participant role.
  -We mostly have these possibilities: Player, NPC, Volunteers, Artist, Organizers.
  -Every participant might have custom field related to his (participant) role
  -We'd like to let people choose their role properly instead of batch changing it based on the selected price in the set.
  
  BUT:
  As we also organize other types of event like conferences, where participant roles are not the same.
  
  We would to like to be able to allow registering participants to select a role within a limited list which does not include every role set in CiviEvent
  (How) can we do this?
  
  PS I can give you any details you might find useful.
  
  **Tags:** civievent, registration, roles
  
  > **Comments:**
  > **username_1**: Hi, is this for paid events or free? are you on drupal/joomla or wordpress? if the first, webform can help you  
  > **username_0**: This is a paid event on wordpress :)  
  
  ---
  
  ## 2 answers
  
  ### Answer by username_0 on 2015-06-09. Score: 4 | Accepted answer
  
  I don't know if this feature will be released one day but I would find it pretty useful.
  You could select a role list base on an event type or template.
  
  However [this extension](https://civicrm.org/extensions/event-registration-based-participant-roles) just came out a few days after my question, and it could help if anyone is in the same situation.
  
  
  ---
  
  ### Answer by username_2 on 2015-06-03. Score: 2
  
  I believe the only way at this time to do this at this time without using (Drupal) Webform is to write custom code.
  
  For custom code, there are a wide variety of approaches - you can write an extension that uses [hook\_civicrm\_buildForm](http://wiki.civicrm.org/confluence/display/CRMDOC/hook_civicrm_buildForm) (or hook\_civicrm\_alterContent or hook\_civicrm\_alterTemplateFile, but IMO these are less elegant). Or you can put a .extra.tpl file in your template override folder with a jQuery snippet to hide roles on certain events.
  
  
  ---
  
  