Conditionally allow checkbox to be checked?

Dory_Viscoglio
Level 10

Conditionally allow checkbox to be checked?

We have forms on our CMS that allow us to say "if x checkbox is unchecked, then y checkbox cannot be checked". I've looked through the visibility rules in Forms 2.0, but don't want the option for checkbox y to disappear if checkbox x is unchecked, which appears to be my only option.

Has anyone been able to make a checkbox that can only be checked if some other criteria is true, while maintaining the checkbox field on the form?
Tags (1)
1 REPLY 1
Anonymous
Not applicable

Re: Conditionally allow checkbox to be checked?

I would use javascript for this. Here is an article that will show your developer how to do this. 

http://stackoverflow.com/questions/2330209/jquery-checkbox-enable-disable 

Adding a similar code (targeting your checkboxes) in your landing page will do what you want.