The Drop Down Field

New Here ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

Hello all good people.

 

Please, give me an advice how to do this:

If I chose one item from Drop Down Field some my text shows in another Text field. I have more item and evere item 
equals different text.

 

Best regards and have a nice day.

TOPICS
JavaScript , PDF forms

Views

49

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
community guidelines

correct answers 1 Correct answer

Adobe Community Professional , Apr 01, 2022 Apr 01, 2022

As the custom validation script of the drop-down field enter something like this:

 

if (event.value=="Option A") this.getField("Text1").value = "Text for Option A";

else if (event.value=="Option B") this.getField("Text1").value = "Text for Option B";

else if (event.value=="Option C") this.getField("Text1").value = "Text for Option C";

 

etc.

Likes

Translate

Translate
Adobe Community Professional ,
Apr 01, 2022 Apr 01, 2022

Copy link to clipboard

Copied

LATEST

As the custom validation script of the drop-down field enter something like this:

 

if (event.value=="Option A") this.getField("Text1").value = "Text for Option A";

else if (event.value=="Option B") this.getField("Text1").value = "Text for Option B";

else if (event.value=="Option C") this.getField("Text1").value = "Text for Option C";

 

etc.

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
community guidelines