Highlighted

How can you ensure the 'No' checkbox is hidden, or inactivated, if the 'Yes' checkbox is selected

Avatar

Guest

28-01-2009

I have a form where, if one selects the 'Yes' checkbox in response to a question, a new set of questions appears. A different set of questions appears if they select 'No'. However, I want to ensure that they don't select both the 'Yes' and the 'No' checkbox, and both sets of questions appear. How do I set things up so only one checkbox is either inactivated or hidden, if the other is selected?

Replies

Highlighted

Avatar

Guest

06-02-2009

set them up as linked radio buttons. That will ensure when one is checked the other cannot be. However, once one is checked, one or the other must be checked (you cannot clear them unless you clear the form).
Highlighted

Avatar

Guest

09-02-2009

place this code in the event:change script area:



if (this.rawValue == 1) {



Field1.presence = "hidden";

Field2.presence = "visible";

Field3.presence = "invisible";



}



else {



Field1.presence = "visible";

Field2.presence = "invisible";

Field3.presence = "hidden";

}