Forums

Validate Checkbox in CF v6

omidhz 18 Apr, 2017
How can I make a checkbox required?
This is what I have now in the Validation rule, but it is not working:
required: Please accept Terms and Conditions before you can proceed.

Attached is the screen shot of my checkbox fields.
If I delete the value, then I can't submit the form and it always shows a error message.
Max_admin 18 Apr, 2017
Answer
1 Likes
Hi omidhz,

For a "single" checkbox you need to use this rule:

checked: Please accept Terms and Conditions before you can proceed.

For multiple:

minChecked[1]: Please select at least one


Best regards,
Max
Max
ChronoForms developer...
Did you try ChronoMyAdmin for managing your Joomla database tables ?
This topic is locked and no more replies can be posted.