You try to recover the editValue of a selection from a list box with multiple selections

I have a requirement to display the text and the value of a list of multiple choice box, but as soon as there are several selections, the value displayed is the rawValue.

My code is something like this:

verifSubTaskDescID.addItem (this.editValue);

verifSubTaskDesc.addItem (this.rawValue);

If 'this' which is an area of list ['a', 'first'] ['b', 'second'] is set to a or b it works perfectly, showing 'a' in the code and the 'first' in the Desc as follows:

a first

OR

second b

but when I select both this list looks like this:

First Prime

second second

Any ideas on how to preserve the letters without making the code too complex or difficult to maintain?

Thank you!!!

JavaScript appears to be similar:

var r = "";
for (var i = 0; i < this.dataNode.nodes.length; i += 1) {
          r += this.dataNode.nodes.item(i).value + " " + this.getDisplayItem(i) + "\n";
}

Textfield1.rawValue = r;

Tags: Adobe LiveCycle

Similar Questions

Maybe you are looking for