Skip to main content
Participant
July 24, 2024
Answered

Multiple check boxes with a NOT applicable box

  • July 24, 2024
  • 1 reply
  • 556 views

Basically, as seen here, I've run into a bit of a hiccup with the form. I want the person filling it out to be able to multi select "morning/afternoon/evening" but if "not applicable" is selected, I want the checks in the other boxes to be erased. I am assuming it has to be a script to do so, I just don't know how, and I can't seem to find the answer here or on an internet search. 

 

This topic has been closed for replies.
Correct answer try67

As the Mouse Up event of that field, enter the following script:

 

if (event.target.value!="Off") this.resetForm(["Morning", "Afternoon", "Evening"]);

 

(replace strings with actual field names, of course)

 

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
July 24, 2024

As the Mouse Up event of that field, enter the following script:

 

if (event.target.value!="Off") this.resetForm(["Morning", "Afternoon", "Evening"]);

 

(replace strings with actual field names, of course)

 

AldebrandAuthor
Participant
July 24, 2024

Just tested it in the preview, and worked great! Just did the same thing but in reverse for the other 3 boxes to uncheck the "N/A" if there's a check in the other ones. I have a few big ones coming up at the end of the form, so this works out handsomely.