Gravity Forms Limit Choices
Gravity Forms Limit Choices Perk allows you to limit how many times each “choice” on a multi-choice field may be selected (e.g. Radio Buttons, Checkboxes, Drop Downs, etc). It works with Product and Option fields with these input types as well.
How does it work?
This perk enables you to specify a limit per choice on your multi-choice field. If a choice reaches its specified limit it will no longer appear in the field on the front-end. While the choice is visually removed from the frontend, it is still editable via the Form Editor so the limit may be adjusted.
Tip: Disable Exhausted Choices Rather than Remove
If you would like to disable rather than remove exhausted choices, just add this code to your theme’s functions.php file:
add_filter( 'gplc_remove_choices', '__return_false' );
How do I enable this functionality?
Navigate to an existing form or create a new form with a multi-choice field. Open the field’s settings and look for the checkbox labeled “enable limits” above the “Choices” section and next to the “enable values” option. Check the “enable limits” option to reveal a new “Limit” column for the “Choices” section.
For each choice, specify a limit (as an integer) for how many times that choice should be able to be selected. Leave the limit blank for choices with no limit.
TIP: If a limit is applied to choices in a Product or Option field and there is a Quantity field associated with that Product field, the quantity ordered will be counted towards the limit.