Answers.Body: <p>I will take the comment from petednz and coleman as the answer that there is no easy way to do this 'out-of-the-box' except to create separate events for male and female attendees.</p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-17T01:43:50.560Z
Answers.LastActivityDate: 2015-09-17T01:43:50.560Z
Answers.UserDisplayName: Phil Hart
Answers.Body: <p>I would do this by writing a little bit of custom code. It would need to:</p>
  
  <ul>
  <li>Implement hook_form_alter and add a validation callback to the webform</li>
  <li>Look up the event participants using the civicrm api</li>
  <li>Only allow the submission to be completed if there are &lt; n number of people with the given gender already enrolled.</li>
  </ul>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-17T00:52:27.807Z
Answers.LastActivityDate: 2015-09-17T00:52:27.807Z
Answers.UserDisplayName: Coleman
Answers.Body: <p>If you use civicrm forms, you can do it using price sets and creating 2 options : male and female and limiting the amount of people per item. </p>
  
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-17T03:38:25.877Z
Answers.Text: That sounds like a good option to consider
Answers.UserDisplayName: petednz - fuzion
Answers.ContentLicense: CC BY-SA 3.0
Answers.CreationDate: 2015-09-17T02:51:37.683Z
Answers.LastActivityDate: 2015-09-17T05:32:23.580Z
Answers.LastEditDate: 2015-09-17T05:32:23.580Z
Answers.UserDisplayName: Yossi
Body: <p>Is it possible to configure the maximum number of participants at an event separately for male and female attendees?</p>
  
  <p>We are using webform to handle registrations for our summer camps and want to limit registrations to say 25 boys and 25 girls. Is there a way to do this?</p>
  
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T00:33:30.777Z
Comments.Text: Can't think of a simple way. Have you considered running them as to separate events as far as registrations go.
Comments.UserDisplayName: petednz - fuzion
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T00:52:37.053Z
Comments.Text: that's a good answer pete
Comments.UserDisplayName: Coleman
Comments.ContentLicense: CC BY-SA 3.0
Comments.CreationDate: 2015-09-17T01:54:31.907Z
Comments.Text: thanks. had considered separate events and looks like that is the only 'out-of-the-box' option.
Comments.UserDisplayName: Phil Hart
Tags: <civievent>
Title: Set max participants separately for male and female
ThreadText: # Set max participants separately for male and female
  
  (Asked by: username_0 on 2015-09-16)
  
  Is it possible to configure the maximum number of participants at an event separately for male and female attendees?
  
  We are using webform to handle registrations for our summer camps and want to limit registrations to say 25 boys and 25 girls. Is there a way to do this?
  
  **Tags:** civievent
  
  > **Comments:**
  > **username_1**: Can't think of a simple way. Have you considered running them as to separate events as far as registrations go.  
  > **username_2**: that's a good answer pete  
  > **username_0**: thanks. had considered separate events and looks like that is the only 'out-of-the-box' option.  
  
  ---
  
  ## 3 answers
  
  ### Answer by username_3 on 2015-09-17. Score: 6 | Accepted answer
  
  If you use civicrm forms, you can do it using price sets and creating 2 options : male and female and limiting the amount of people per item.
  
  > **Comments:**
  > **username_1**: That sounds like a good option to consider  
  
  ---
  
  ### Answer by username_0 on 2015-09-17. Score: 2
  
  I will take the comment from petednz and coleman as the answer that there is no easy way to do this 'out-of-the-box' except to create separate events for male and female attendees.
  
  
  ---
  
  ### Answer by username_2 on 2015-09-17. Score: 2
  
  I would do this by writing a little bit of custom code. It would need to:
  
  * Implement hook\_form\_alter and add a validation callback to the webform
  * Look up the event participants using the civicrm api
  * Only allow the submission to be completed if there are < n number of people with the given gender already enrolled.
  
  
  ---
  
  