Skip to main content
Known Participant
February 6, 2022
Question

PDF dropdown entries depend on another field in the document

  • February 6, 2022
  • 1 reply
  • 2388 views

Hi, 

I would like to create a drop down list where the drop down options should be taken from another field in the pdf form. To explain it a bit more...

I have created a form list with "name1" another field with "name2"... and so on. These fields occur in various places in my form. I would now like to have a drop down list that displays the actual name and enters the actual name when using it. So if "name1" is "Eddie", I would like to be able to select "Eddie" from my drop down list. Is this possible? And if so how? 

I am not very advanced with pdf forms and just trying to put some things together for my class.

Thanks in advance.

This topic has been closed for replies.

1 reply

Nesa Nurani
Community Expert
February 6, 2022

You could gather all those names in array and use setItems() to set those names in dropdown field.

Known Participant
February 6, 2022

I don't want to set these names. I would like them to be variable so that next year I can just change name1 etc and still use the same form. But thank you for the idea.

 

try67
Community Expert
February 7, 2022

Setting the values means applying them to the drop-down field so they can be selected. It does not mean they can't be changed later on.

You need to better explain how it should work, though. What items should field 2 have if "Eddie" is selected in field 1? Just "Eddie"? For that you don't need a drop-down. Just use a text field and copy the selected value from field 1 into it.