CiviCRM Community Forums (archive)

*

News:

Have a question about CiviCRM?
Get it answered quickly at the new
CiviCRM Stack Exchange Q+A site

This forum was archived on 25 November 2017. Learn more.
How to get involved.
What to do if you think you've found a bug.



  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Maximum participant for each category
Pages: [1]

Author Topic: Maximum participant for each category  (Read 871 times)

sawjer

  • Guest
Maximum participant for each category
November 24, 2008, 02:56:31 am
I have an event with 4 types of accomodation, each having a limited number  of available beds. I need a solution not only to limit the total attendance (because of overall resource limitations) but also a limit for each type of accomodation.

How can this be achieved?

Donald Lobo

  • Administrator
  • I’m (like) Lobo ;)
  • *****
  • Posts: 15963
  • Karma: 470
    • CiviCRM site
  • CiviCRM version: 4.2+
  • CMS version: Drupal 7, Joomla 2.5+
  • MySQL version: 5.5.x
  • PHP version: 5.4.x
Re: Maximum participant for each category
November 24, 2008, 08:10:55 am

You can potentially accomplish this by using the form validate hook. Check the hook documentation for how to implement a hook etc.

in standalone code, the function will be called standalone_civicrm_validate

lobo
A new CiviCRM Q&A resource needs YOUR help to get started. Visit our StackExchange proposed site, sign up and vote on 5 questions

Pages: [1]
  • CiviCRM Community Forums (archive) »
  • Old sections (read-only, deprecated) »
  • Support »
  • Using CiviCRM »
  • Using CiviEvent (Moderator: Yashodha Chaku) »
  • Maximum participant for each category

This forum was archived on 2017-11-26.