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

selection of multiple checkboxes with a dropdown

New Here ,
Feb 01, 2023 Feb 01, 2023

Copy link to clipboard

Copied

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

Views

143

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

Copy link to clipboard

Copied

Repeat the script for the other check boxes.

Votes

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

Copy link to clipboard

Copied

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

Votes

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

Copy link to clipboard

Copied

LATEST

Post your full code, please.

Votes

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