Copy link to clipboard
Copied
Hi, I would like to create a pdf form with acrobat. Is it possible to enter multiple data at the same time in a drop-down list? It only makes me add them one at a time. In addition, I would like to associate each value in the drop-down list with a specific value. Thank you in advance.
Copy link to clipboard
Copied
You can use a script with setItems.
Copy link to clipboard
Copied
This can be achieved using a script, as mentioned.
The basic code is this:
this.getField("Dropdown1").setItems(["Item 1", "Item 2", "Item 3"]);
If you want to specify an export value for each item you can do it like this:
this.getField("Dropdown1").setItems([["Item 1", "1"], ["Item 2", "2"], ["Item 3", "3"]]);
If you're interested, I've created a (paid-for) tool that allows you to import the items from a text file, including export values, into one or more drop-downs. You can find it here: http://try67.blogspot.com/2009/11/acrobat-import-text-file-to-drop-down.html