-
-
Save spivurno/4005788 to your computer and use it in GitHub Desktop.
Gravity Wiz // Limit Checkboxes Usage
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// standard usage | |
new GFLimitCheckboxes(115, array( | |
5 => array( | |
'min' => 2, | |
'max' => 3 | |
) | |
)); | |
// template | |
new GFLimitCheckboxes(FORM_ID, array( | |
FIELD_ID => array( | |
'min' => MIN_NUMBER, | |
'max' => MAX_NUMBER | |
) | |
)); | |
// multiple fields | |
new GFLimitCheckboxes(115, array( | |
5 => array( | |
'min' => 2, | |
'max' => 3 | |
), | |
13 => array( | |
'max' => 3 | |
) | |
)); | |
// multiple forms, multiple fields | |
new GFLimitCheckboxes(115, array( | |
5 => array( | |
'min' => 2, | |
'max' => 3 | |
), | |
13 => array( | |
'max' => 3 | |
) | |
)); | |
new GFLimitCheckboxes(38, array( | |
2 => array( | |
'min' => 5, | |
'max' => 5 | |
) | |
)); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment