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?

  • 3
    Can't think of a simple way. Have you considered running them as to separate events as far as registrations go.
    – petednz - fuzion
    Sep 17, 2015 at 0:33
  • 1
    that's a good answer pete
    – Coleman
    Sep 17, 2015 at 0:52
  • thanks. had considered separate events and looks like that is the only 'out-of-the-box' option.
    – Phil Hart
    Sep 17, 2015 at 1:54

3 Answers 3


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.

  • 2
    That sounds like a good option to consider
    – petednz - fuzion
    Sep 17, 2015 at 3:38

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.

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.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.