Skip to main content
Participant
January 30, 2024
Answered

Trying to uto-populate a text box from drop down me us

  • January 30, 2024
  • 1 reply
  • 484 views

New to Adobe pro and I need help

I am trying to create a document that has multiple drop down menus with multiple options and when you click on any of the options it populates into a text box to the side. I don't even know if this is possible, I mostly just need to be able to select multiple options from a drop down menu and have it be easy to see what was chosen. Any help is appreciated, thanks!

This topic has been closed for replies.
Correct answer Nesa Nurani

It depends on how you want to show the result, the most simple way would be to use += instead of = in the script I posted above, if you want to show with a space between choices you can do it like this:

this.getField("Text1").value += event.value+" ";

If you want to show each choice in new line then set text field to multiline and change this part: event.value+" " to this:event.value+"\n".

Although you will need condition to clear field.

1 reply

Nesa Nurani
Community Expert
Community Expert
January 30, 2024

Let's say the name of the text field is "Text1", just use this as 'Validate' script of dropdown field:

this.getField("Text1").value = event.value;

Participant
January 30, 2024

Is there a way to let it add multiple options from the same drop down? Like if click option 1 and it populates in the text box and then go click option 2 and have it populate as well?

Nesa Nurani
Community Expert
Nesa NuraniCommunity ExpertCorrect answer
Community Expert
January 30, 2024

It depends on how you want to show the result, the most simple way would be to use += instead of = in the script I posted above, if you want to show with a space between choices you can do it like this:

this.getField("Text1").value += event.value+" ";

If you want to show each choice in new line then set text field to multiline and change this part: event.value+" " to this:event.value+"\n".

Although you will need condition to clear field.