These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Drop List Assistance Please

SmiffySan
Registered: Nov 4 2011
Posts: 11
Answered

I have a huge amount of entries to populate a drop down list with. They are currently on a spreadsheet. Is there a way to import them into the drop down list as I don't want to be typing from here to rapture? I have no SQL back end or facility to use and XML mapping.
 
Many thanks

A poor overworked muppet

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Accepted Answer
This is not a huge scripting task, but you'll need to some work. First, export the spread sheet to a comma separated value file.

Then Read these two articles, they'll provide everything you need to know.
http://acrobatusers.com/articles/getting-external-data-acrobat-x-javascript
http://acrobatusers.com/tutorials/2007/js_list_combo_livecycle/

There are other ways to do this, but none are less complex.

Except maybe a tool already created by Try67 for this purpose
http://try67.blogspot.com/2009/11/acrobat-import-text-file-to-drop-down.php

I believe this tool is for AcroForm lists, you'll need to modify it to work with a LiveCycle form. Or if you contact try67, he might do it for a fee.

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script

SmiffySan
Registered: Nov 4 2011
Posts: 11
I've dome a few workarounds but basically done the job so thanks Thomp.

A poor overworked muppet