Checkbox - Select "None" other boxes uncheck, Check another box and "None" unselects

New Here ,
Feb 06, 2021 Feb 06, 2021

Copy link to clipboard

Copied

Setting up a fillable form to obtain information for a possible home sales listing. The information involves the question have you had an insurance claim? The boxes to check are None, Roof, Water, Fire, Other (followed by a text box to write in). I want them to be able to select None and the other boxes are unvhecked OR if they check one of the other boxes (i.e., roof) then None unchecks. I can do the Yes/No but do not know how to apply this to this situation of multiple boxes. All the boxes besides None can be checked in this example, just if None is checked the others cannot be checked without None unchecking.

 

Help Please!!

 

TOPICS
Create PDFs

Views

48

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 06, 2021 Feb 06, 2021

Copy link to clipboard

Copied

It's easy to do it but in your post you are contradicting yourself, first you say if 'None' is checked others are unchecked or if others are checked 'None ' is unchecked, and at the and you say if 'None' is checked others can't be checked that is contradicting.

You can set script in 'None' checkbox to make read only other checkboxes when checked  and make them not read only when unchecked but that would mean they can't be checked until 'None' is unchecked, But first you need to decide what you want to do.

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2021 Feb 06, 2021

Copy link to clipboard

Copied

I appreciate your trying to help, Thank You. I realize that I'm probably
contradicting myself so let me (hopefully) straighten it out. Below is a
screen shot of the line in the fillable form I'm referring to.
[image: image.png]

What I want to do is ensure that if a prospective client checks "None" then
the remaining boxes Roof, Water, Fire, Other are not inadvertently checked
also. Likewise, if they checked None and then said Oh, wait we had a
lightning strike 5 years ago (Other and they'd then write in Lightning
strike) the None box could not be checked.

Restating: if None is checked the others cannot be checked and if one of
the others is checked none is cleared.

Does that help?

Carl

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Engaged ,
Feb 06, 2021 Feb 06, 2021

Copy link to clipboard

Copied

Actually you are contradicting it again.

Restating: if None is checked the others cannot be checked and if one of
the others is checked none is cleared.

If others can't be checked when 'None' is checked, how will you check other to clear 'None'?

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
New Here ,
Feb 06, 2021 Feb 06, 2021

Copy link to clipboard

Copied

We want a definitive "NO" = None to the question of whether there has been
an insurance claim on the property while they have owned it. So, if there
has been no insurance claim we want them to select none which then obviates
their checking: roof, water, fire or other.

Alternately, if there has been an insurance claim we want to know, i.e.
roof damage, water damage, fire or other - in my last i mentioned lightning
as a possible other.

We do not want them to be able to check "None" and then one of these other
boxes and if they do check None and then one of the other boxes we want the
None box to uncheck. In other words we do not want a check in None AND in
one of the other boxes.

Hope that clarifies.

Thanks again,

Carl

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Community Professional ,
Feb 08, 2021 Feb 08, 2021

Copy link to clipboard

Copied

LATEST

In "None" checkbox -> Mouse UP -> Run Javascript add this code:

if(event.target.value != "Off"){
this.getField("Roof").value = "Off";
this.getField("Water").value = "Off";
this.getField("Fire").value = "Off";
this.getField("Other").value = "Off";}

 

In all others checkboxes add this code:

if(event.target.value != "Off"){
this.getField("None").value = "Off";}

 

Likes

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines