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

tick box to tick from dropdown box selection

New Here ,
Oct 28, 2018 Oct 28, 2018

Copy link to clipboard

Copied

Hello  I have a PDF form that I have made.

It has a dropdown box with 0,1,2,3 I would like a check box to tick if 1,2 or 3 is selected.

Could someone please help me

TOPICS
Acrobat SDK and JavaScript , Windows

Views

309

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

correct answers 1 Correct answer

Community Expert , Oct 30, 2018 Oct 30, 2018

So the drop-down field is called "box 1" and the checkbox field "A1"?

If so, you can do it like this:

Create a (hidden) text field with the following custom calculation script:

this.getField("A1").tickThisBox(0, (this.getField("box 1").valueAsString!="0");

Votes

Translate

Translate
Community Expert ,
Oct 29, 2018 Oct 29, 2018

Copy link to clipboard

Copied

What are the names of both of those fields?

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 ,
Oct 29, 2018 Oct 29, 2018

Copy link to clipboard

Copied

Thanks for your reply

It is actually a checklist that has 170 of these

The first one is drop-down box 1 and the checkbox A1. And so on down to 170

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 ,
Oct 30, 2018 Oct 30, 2018

Copy link to clipboard

Copied

LATEST

So the drop-down field is called "box 1" and the checkbox field "A1"?

If so, you can do it like this:

Create a (hidden) text field with the following custom calculation script:

this.getField("A1").tickThisBox(0, (this.getField("box 1").valueAsString!="0");

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