Gravity Forms Limit Choices
Limit how many times each choice on a multi-choice field may be selected.
What does it do?
This plugin allows you to limit how many times each choice on a choice-based field may be selected (e.g. Radio Buttons, Checkboxes, Drop Downs, etc). Exhausted choices are automatically removed to prevent users from being able to select the choice for future entries.
Features
- Apply limits to all choice field types.
Supports Radio Buttons, Checkboxes, Drop Downs, and Multi Selects. - User-friendly back end controls.
Enable limits with a single click. Apply limits to choices with ease. - Customizable to meet your needs.
Disable exhausted choices, display spots left, and more with powerful filters. - Supports Product and Option fields.
Effortlessly limit choice-based Product and Option fields. - Automatic updates.
Get updates and the latest features right in your dashboard. - Awesome support.
We’re here to help! And we mean it.
Documentation
How do I enable this functionality?
After installing and activating Gravity Forms Limit Choices, limits become available in any supported choice-based field. Let’s step through that process.
Feature Details
Adjust Limits
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 front end, it is still editable via the Form Editor so the limit may be adjusted.
The number of choices in the Form Editor represents the total number of choices available and will not update as entries are submitted. Adjustments to the number of available should be set to the maximum number you want to make available. For example, if you initially set the the maximum number to 10
, and you want to make 2 more available, set the number to 12
.
Usage Examples
Product and Option Fields
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.
Conditional Logic
The remaining number of choices left can be used to trigger conditional logic. Once limits are enabled for a field, the (Remaining) condition becomes available in the field drop down within the conditional logic rules. Use this to show or hide a field if the number of remaining choices is above or below a certain level.
FAQs
Can I display the number of choices left?
GP Inventory supports showing the number of remaining spots left without requiring a snippet.
To display how many spots are left in the choice label, use the snippet below.
How do I disable exhausted choices rather than remove them?
If you would like to disable rather than remove exhausted choices, use the gplc_remove_choices hook.
How about not disabling exhausted choices at all?
If you don’t want to disable exhausted choices for any particular reason (like using them for conditional logic), then use the gplc_disable_choices hook.
Can I set a daily limit?
Absolutely. Use this this snippet to reset limits daily.
How can I share limits across multiple fields?
GP Inventory supports sharing limits across multiple fields using Shared Inventory.
To share limits across multiple choice fields, use the following snippet.
Hooks
- gplc_choice_counts
- gplc_choice_limit
- gplc_choiceless_message
- gplc_completed_payments_only
- gplc_disable_choices
- gplc_not_enough_stock_message
- gplc_out_of_stock_message
- gplc_remove_choices
Gravity Forms has hundreds of hooks. Check out our Gravity Forms Hook Reference for the most thorough guide to Gravity Forms’ many actions and filters.
Related Resources
- How To Build a Curbside Pickup Form
Easily add a pickup option for your store using Gravity Forms. Build a custom solution that doesn't require a complicated eCommerce platform. - How to Style Gravity Forms Read-Only Fields
An overview of how to style read-only and disabled fields with CSS. Includes examples of how to target specific field types and different methods of styling.