Skip to main content
billyc40784016
Participant
Oct 29, 2018 6:55 AM UTC
Answered

tick box to tick from dropdown box selection

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

This topic is closed to new replies. Start a new post to keep the conversation going.
try67
try67Correct answer
Community Expert
Oct 30, 2018 9:57 AM UTC

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");

3 replies

try67
Community Expert
Community Expert
Oct 29, 2018 12:32 PM UTC

What are the names of both of those fields?

Translate
billyc40784016
Participant
Oct 30, 2018 3:54 AM UTC

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

Translate
try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
Oct 30, 2018 9:57 AM UTC

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");

Translate