Skip to main content
Inspiring
January 20, 2016
Question

Possible to Extract Options From a List Box?

  • January 20, 2016
  • 1 reply
  • 417 views

i am editing an existing form using Acrobat Pro DC, and need to make changes to the options in a List Box. I would like to extract all of the options available in the List Box so that I can then paste them into a Word Document. My goal is to get an at-a-glance view of all of the options in a one page list.

Any ideas would be appreciated

This topic has been closed for replies.

1 reply

try67
Community Expert
Community Expert
January 20, 2016

Sure, it's easily done with a script.

Open the JS Console (Ctrl+J) and paste this code into it:

var f = this.getField("Dropdown1");

for (var i=0; i<f.numItems; i++)

    console.println(f.getItemAt(i));

Edit the first line and replace "Dropdown1" with the actual field name (keep the quotes, though).

Then select all of the code with the mouse and press Ctrl+Enter.

The script will print to the console the list of items for that field.

kmc27Author
Inspiring
January 20, 2016

try67 - Thanks so much, that is a real time-saver!