Skip to main content
Known Participant
January 29, 2016
Answered

Form - enter state/province names to dropdown

  • January 29, 2016
  • 1 reply
  • 8473 views

Hello again,

I am using Acrobat Pro DC using a MC Pro and I want to create a State and Province dropdown on my form. After I clicked on Properties and then Options, is there a way to enter all state/province names at the same time instead of adding one by one? I know there are scripts out there, but I thought I could create the list I needed from List States - 50 US States - Canadian Provinces - Australian States - Mexican States - Brazilian States - ListStates.co… and copy and paste.

I've been reading about combo lists, but I do not see it offered in Pro DC. Please correct me if I am wrong.

Thank you.

This topic has been closed for replies.
Correct answer try67

Yes, it can be done, but it requires using a script.

The basic format of this script is:

this.getField("DropDownName").setItems(["Alaska", "Alabama", ...]);

If you have the items in a text file or spreadsheet and want to import them all at once you can use a tool like this one I've developed, which can be purchased from here: Custom-made Adobe Scripts: Acrobat -- Import Items from a Text File to a Combo-Box or List Field

I also offer there a free sample file with all 50 US states in a drop-down field that you can copy and use in your own file.

1 reply

try67
Community Expert
try67Community ExpertCorrect answer
Community Expert
January 29, 2016

Yes, it can be done, but it requires using a script.

The basic format of this script is:

this.getField("DropDownName").setItems(["Alaska", "Alabama", ...]);

If you have the items in a text file or spreadsheet and want to import them all at once you can use a tool like this one I've developed, which can be purchased from here: Custom-made Adobe Scripts: Acrobat -- Import Items from a Text File to a Combo-Box or List Field

I also offer there a free sample file with all 50 US states in a drop-down field that you can copy and use in your own file.

Known Participant
January 29, 2016

that's great; thank you!