Hi!
I need to validate 2 checkbox min and max and I do not know what rule to use.
The user will have 3 choices and he must select two, neither more nor less.
What validation rule should I apply?
Perhaps Is Greater Than or Less validation, but I do not see how the set for that.
Thanks in advance for the help.
Cordially.
Thank you hugh :
I need to validate 2 checkbox min and max and I do not know what rule to use.
The user will have 3 choices and he must select two, neither more nor less.
What validation rule should I apply?
Perhaps Is Greater Than or Less validation, but I do not see how the set for that.
Thanks in advance for the help.
Cordially.
Thank you hugh :
A PHP validation, with PHP code:
Code:return count($formModel->formData['youtable___yourelement']) === 2;
Replace yourtable___yourelement with your full checkbox element name.
-- hugh
Last edited: