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

Add Items in List Box dynamically.

neo_canes
Registered: May 30 2008
Posts: 10

Hi,

I have one List box on my pdf file I want to add dynamically Items in that List Box.
Can any body can explain with small example how to do it?

Thanks,

My Product Information:
Acrobat 3D 8.1.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Use the Acrobat JavaScript "insertItemAt()" method of the field object.

var l = this.getField("myList");
l.insertItemAt("sam", "s", 0); /* inserts sam to top of list l */

Inserts an item labeled 'sam' with an export value of 's' at the top of the list box.

George Kaiser