Answered
Hello,
(This applies to Acrobat Javascript, version 5 or greater.)
I have a listbox with multiple selections. For example, I can set the current value to visible items 2 and 6 using:
f.currentValueIndices = [1,5];
I need to make the above values the default value. f.defaultValue = "abcd"; is great for a single item, but does not work for setting multiple items. For example f.defaultValue = [1,5]; is not valid.
The reference guide mentions export and user values but I cannot find any commands that will work.
In summary I need to set the default value of a list box with multiple items (indicies).
Thanks in advance.
For example, the list will maintain it's current selection when it is saved. So for the initail use you can just save the form with the default selections you want. If you have a reset button, then add a "Run a JavaScript" action to it, after the reset action", to setup your defaults.
Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script