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

adding multiple selected items from a list box to a text box

jaksn100
Registered: Nov 23 2009
Posts: 7

I am trying to pass multiple selected items from one list box into another empty list box. I have a list box with a significant number of items in the list and want to pass the selected items into another list so that the selected items make up a new much shorter list. The form I am creating will be printed and I need all selected options in the list box to be visible - thus the new list box that is comprised of only the selected options. Hopefully this makes sense.

Any help that can be offered would be great. I have looked at a number of other examples on the acrobat users site - but have not found anything that I can make work.

Thanks

My Product Information:
Acrobat Pro 8.1.6, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Have you looked at the [url=http://www.adobe.com/devnet/acrobat/javascript.php]Acrobat JS API Reference[/url]?

You will recieve an array of slected items from multiple selection enabled list box. You should be able to use this array to set the itmes, 'setItems(oArray)' method, to set the itemst into your field.

George Kaiser

Philsy
Registered: Mar 29 2011
Posts: 3
I am trying to find out how to do this as well. The link you mention isn't working. Is there someplace I can view a demo?
try67
Expert
Registered: Oct 30 2008
Posts: 2398
The link is still active, and still contains the relevant information:
http://www.adobe.com/devnet/acrobat/javascript.php

- AcrobatUsers Community Expert - Contact me personally at try6767 [at] gmail [dot] com
Check out my custom-made scripts website: http://try67.blogspot.com