How can I mirror the same information in a new field from a dropdown field?

New Here ,
Jan 03, 2019

Copy link to clipboard

Copied

Can anyone help me?

Thanks.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

As the custom calculation script of your text field enter something like this code:

event.value = this.getField("Dropdown1").valueAsString;

Adjust the field name to match the actual one.

TOPICS
Acrobat SDK and JavaScript, Macintosh, Windows

Views

123

Likes

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

How can I mirror the same information in a new field from a dropdown field?

New Here ,
Jan 03, 2019

Copy link to clipboard

Copied

Can anyone help me?

Thanks.

Most Valuable Participant
Correct answer by try67 | Most Valuable Participant

As the custom calculation script of your text field enter something like this code:

event.value = this.getField("Dropdown1").valueAsString;

Adjust the field name to match the actual one.

TOPICS
Acrobat SDK and JavaScript, Macintosh, Windows

Views

124

Likes

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
Jan 03, 2019 0
Most Valuable Participant ,
Jan 03, 2019

Copy link to clipboard

Copied

What kind of "new field"? A text field?

Likes

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
Reply
Loading...
Jan 03, 2019 0
New Here ,
Jan 03, 2019

Copy link to clipboard

Copied

Yes, text, selected from a separated dropdown list.

Likes

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
Reply
Loading...
Jan 03, 2019 0
Most Valuable Participant ,
Jan 03, 2019

Copy link to clipboard

Copied

As the custom calculation script of your text field enter something like this code:

event.value = this.getField("Dropdown1").valueAsString;

Adjust the field name to match the actual one.

Likes

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
Reply
Loading...
Jan 03, 2019 1
New Here ,
Jan 03, 2019

Copy link to clipboard

Copied

It worked!

How can I turn this automatic?

I had to click on the field to update the information...

Likes

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
Reply
Loading...
Jan 03, 2019 0
try67 LATEST
Most Valuable Participant ,
Jan 03, 2019

Copy link to clipboard

Copied

It will work automatically, but if you want it to change the moment you make a selection go to the properties of the drop-down field and under the Options tab tick the box next to "Commit selected value immediately".

Likes

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
Reply
Loading...
Jan 03, 2019 0