Disable checkbox after it's been chosen by 20 visitors?

  • spccasc
    Asked on April 27, 2016 at 2:52 PM

    Hi

    Is it possible to use a conditional or code to disable a checkbox after it's been checked and submitted by 20 other visitors?

    The scenario: I have 8 checkboxes that are available times of a free training session. The department wants to disable any checkbox that has been chosen by 20 visitors, because that's the number of seats in the room. So I'd need the form to check to see how many people have checked each box, then disable the checkboxes that have been chosen 20 times.

    Is this possible?

    Thanks,

    Sonya

     

  • Ben
    Replied on April 27, 2016 at 4:07 PM

    You could do that by using a widget, like the following: Ticket Purchases

    It will allow you to set up the widget to only accept the 20 selections as you have mentioned. Since it is a widget, it will be able to check the number of times some option was used and based on that disable the same.

    You can add it to your form by following the steps here: How to Add a Widget to your Form

  • spccasc
    Replied on April 28, 2016 at 10:31 AM

    Thanks! I'll check it out.