Gravity Perks Limit Checkboxes 1.2.8
You must be an active subscriber to view this premium content. Please register
What does it do?
The Limit Checkboxes perk allows you to limit how many checkboxes of a checkbox field may be selected at any given time. This perk supports specifying a minimum and maximum limit per checkbox field and also allows you to span one field’s limits across multiple fields!
How does it work?
When a limit is spanned across multiple checkbox fields, all checked checkboxes in those fields will count towards the specified limit. For example, if you have two checkbox fields with a shared limit of two (2), you will be able to select two checkboxes from a single field or one checkbox in each field.
The minimum limit is validated when the form is submitted. If the user did not select enough checkboxes it will return a validation error with the minimum number of checkboxes that must be checked.
Removed unused method Array.prototype.gplcUnique.
Fixed conflict with Internet Explorer 11
Fixed conflict with Populate Anything where checkbox count was calculated incorrectly.
Fixed another potential performance issue.
Fixed a few performance issues when limiting a large number of checkbox fields.