Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

Possible to Extract Options From a List Box?

Explorer ,
Jan 20, 2016 Jan 20, 2016

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

TOPICS
Acrobat SDK and JavaScript , Windows
377
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Community Expert ,
Jan 20, 2016 Jan 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.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Explorer ,
Jan 20, 2016 Jan 20, 2016
LATEST

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

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines