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

selection of multiple checkboxes with a dropdown

Community Beginner ,
Feb 01, 2023 Feb 01, 2023

Hello there,

I have stuck in PDF form where i need to select the option-1 from the drop-down menu, the multiple check box (Box1, Box2, Box3) should be auto-populate/auto check.
i have tried it for a single box, and it works for me but I need to select the Multiple boxes with option-1
i have tried this script for a single box, if anyone please help me to amend the script for the selection of multiple boxes
this.getField("B1").checkThisBox(0,event.value == "Choice01" ? true : false);

where B1 is the box1 and the Choice01 is the option-1 in the dropdown menu

 

Regards  

TOPICS
Create PDFs , Edit and convert PDFs , JavaScript , PDF forms
676
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 ,
Feb 01, 2023 Feb 01, 2023

Repeat the script for the other check boxes.

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 Beginner ,
Feb 01, 2023 Feb 01, 2023

i have tried but nothing happens, even box 1 disconnects too 

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 ,
Feb 02, 2023 Feb 02, 2023
LATEST

Post your full code, please.

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