Hi,
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";
}
xfa.host.messageBox(msg);
xfa.host.messageBox(this.rawValue);
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.
Thanks.