GP Limit Alternatives is a Gravity Types plugin which allows you to limit how often each”choice” to a multi-choice field might be selected (e.g. Radio Buttons, Checkboxes, Drop Downs, etc). It functions together with Alternative and Product fields with these input types too.
How does this function?
This perk enables you to define a limit per choice in your multi-choice field. It will appear in the area on the front end In case a pick reaches its limit that is specified. So the limitation may be corrected while the decision is removed from the frontend, it’s still editable through the Form Editor.
Disable Exhausted Choices Instead of Remove
If You Want to disable Instead of remove tired choices, simply add this code into your theme’s functions.php file:
add_filter( ‘gplc_remove_choices’, ‘__return_false’ );
How do I enable this functionality?
Implements to an present form or create a new form using a multi-choice field. Open the area’s settings and look for the checkbox labeled”enable limits” over the”Choices” section and alongside the”empower values” alternative. Check the”enable limits” choice to show a fresh”Limit” column to the”Choices” section.
For every choice, specify a limitation (as an integer) for the number of times that choice needs to be able to be chosen. Leave the limitation sterile for alternatives with no limit.
Limit Alternatives Settings
If a limitation is applied to options in a item or Option field and there is a Number field associated with that item area, the quantity ordered will be counted towards the limit.
Display Areas Left Label
This can provide you the option to display the number of spots are left from the choice label while using the Gravity Forms Limit Choices perk.
See rawgp-limit-choices-spots-left.php hosted with ? by GitHub
Do not disable emptied choices
If you don’t want to disable emptied choices for any Specific reason (such as using them for conditional logic), then simply add this code into your theme’s functions.php file:
add_filter( ‘gplc_disable_choices’, ‘__return_false’ );