Gravity Perks Limit Choices Plugin
This plugin gives you the ability to set a maximum number of times that a choice from a drop-down menu can be chosen in a choice-based field (e.g. Radio Buttons, Checkboxes, Drop Downs, etc). When a choice has been used up, it is withdrawn from the pool automatically, and users are denied the ability to select it for any further submissions.
- Apply limits to all choice field types.
It is compatible with checkboxes, radio buttons, dropdown menus, and multiple selections.
- User-friendly back end controls.
Simply click the button to activate the limits. It is simple to impose constraints on the available options.
- Customizable to meet your needs.
Using advanced filters, you may hide the options that are no longer available, see how many slots are still open, and much more.
- Supports Product and Option fields.
Limiting choice-based Product and Option fields can be done without much effort.
- Automatic updates.
Your dashboard will provide you with the most recent features and the most recent updates.
- Awesome support.
We are here to be of assistance! We sincerely mean it.
If a choice has reached its maximum allowed count, it will be removed from the field on the front end of the application. Even though the option is not going to be visible to the user on the front end, it is still editable through the Form Editor, which means that the limit can be changed.
The number of choices displayed in the Form Editor corresponds to the total number of options available; this number will not be updated as new items are added to the form. The maximum number of people you want to have access to should be entered into any adjustments that are made to the available number of people. For instance, if you initially set the maximum number to 10, but you later decide that you want to make room for two additional people, you should increase the number to 12.
Product and Option Fields
If there is a Quantity field linked with a Product field and a restriction has been placed on the choices that can be made in that Product field, then the quantity that has been ordered will be counted toward the limit that has been placed on those choices.
It is possible to set off conditional logic based on the amount of options that are still available. The (Remaining) condition will become accessible in the field drop down menu within the conditional logic rules as soon as limits are activated for a particular field. You can use this to show or hide a field depending on whether or not the number of options that are still available is above or below a specified level.
Can I display the number of choices left?
Utilize the code snippet below in order to display the number of available slots in the option label.
How do I disable exhausted choices rather than remove them?
Use the gplc remove choices hook if you want to disable exhausted choices rather than removing them after they have been used.
How about not disabling exhausted choices at all?
Use the gplc disable choices hook if you don’t want to disable exhausted choices for any purpose in particular (like using them for conditional logic), as this will allow you to keep those choices enabled.
Can I set a daily limit?
Absolutely. You can reset the limitations on a daily basis by using this snippet.
How can I share limits across multiple fields?
Make use of the following code snippet in order to distribute limitations across multiple option fields.