• Resolved GhostFog

    (@ghostfog)


    Is it possible to define a maximum number of participants for a field?

    I have something like planning a party in mind: I want three ppl to bring cakes, five ppl to bring chips, 20 for beer, everyone a steak and one with a bbq grill… ??
    If someone signs up for the grill no other should be able to choose this option. I hope you get the picture.

    https://www.ads-software.com/plugins/participants-database/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author xnau webdesign

    (@xnau)

    I understand and there is a plugin API that includes a validation callback that allows you to create a custom validation function. Your function could be in a separate plugin or in your theme functions file. Basically your function would look at the incoming values from a form submission and give a valid or not response. You would check the incoming value against the already stored values in the database. It’s also possible to create a custom error message if the field is invalid.

    Participants Database 1.5 API

    Thread Starter GhostFog

    (@ghostfog)

    I was suspecting such an answer :-/ thx. ??
    Nevertheless a nice and useful plugin!

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Counting and limiting number of participants’ is closed to new replies.