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

Need a JavaScript for a dropdown list to trigger 2 different check boxes

New Here ,
Sep 28, 2016 Sep 28, 2016

Drop down list of 17 items two different check boxes 14 items would trigger 1 box 3 of the items would trigger the other.

Only 1 check box can be answered at a time

TOPICS
Acrobat SDK and JavaScript , Windows
361
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
Engaged ,
Sep 29, 2016 Sep 29, 2016

Solution to this problem is quite simple...... contact me for answer

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
LEGEND ,
Sep 29, 2016 Sep 29, 2016
LATEST

The forums work best if replies and discussions are PUBLIC. Please help the forums to thrive so that they can help you.

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 ,
Sep 29, 2016 Sep 29, 2016

You can use something like this code as the custom validation script of the drop-down field (make sure to tick the "Commit selected value immediately" box under its Properties - Options):

if (event.value=="Option1" || event.value=="Option2" || event.value=="Option3")

    this.getField("Checkbox1").value = "1";

else this.getField("Checkbox1").value = "2";

You'll probably need to adjust the field names and values in the code. This is just a generic example.

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