Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Multiple check boxes with a NOT applicable box

New Here ,
Jul 24, 2024 Jul 24, 2024

Aldebrand_0-1721835618831.png

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. 

 

TOPICS
How to , PDF , PDF forms
417
Translate
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
1 ACCEPTED SOLUTION
Community Expert ,
Jul 24, 2024 Jul 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)

 

View solution in original post

Translate
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
Community Expert ,
Jul 24, 2024 Jul 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)

 

Translate
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 ,
Jul 24, 2024 Jul 24, 2024
LATEST

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. 

Translate
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