List Box with Multiple Selection




I am trying to add a list box with "Allow Multiple Selection" to my PDF

form. The problem I'm having is that as soon as the user leaves the

list box field, all the selections are lost. I have the following

javascript attached to the "exit" event:

var msg = "list box length: " + this.length;

for (var i=0; i < this.length; i++) {

msg += "\nitem " + i + " is " + (this.getItemState(i) ? "" : "NOT ") + "selected";


All items are always reported as not being selected, but the rawValue is

show a "\n" separated list of the selected values.

Does anyone now what would cause this behaviour? I'm using the Workbench app from

LiveCycle ES Update 1 SP1. The form has a target version of 8.1.

I was able to create a new form with no fields except a list box with static values and

that works as expected.










Just tried your code on a sample and it works fine for me. If it works with a new form then there must be something unique with your form. Can you post it to and I will have a look.



I noticed a couple of things. The sample which works for me is very

simple, no data source and the default binding for the list box is set to Normal. If I change the binding to None, it stops working. Change

it back to Normal and it works again.

I think it might be the version of Reader that I'm using, which is

8.1.2. I found this note in the 8.1.3 release notes:

"1570212 Multiple selection listbox does not keep items selected when focus leaves field."

I upgraded to 8.1.3 and it seems to be working as expected now.