Hi, I'm relatively new to Adobe LiveCycle Designer ES4 and writing javascript. I'm having a hard time making my list box work and populate a text field.
I want the user to be able to select multiple selections from the list box and those selections would populate in the text field. Right now if the user selects an item from the list box and then selects another item from the list box, the previous selection is replaced by the new selection.
Here is the script I have.
form1.StatutesListBox::exit - (JavaScript, client)
if(this.rawValue=="2"){
SelectedStatutes.rawValue = "8 § 1324(a)(1)(A)(ii) Illegal transportation of an Alien";
}
if(this.rawValue=="3"){
SelectedStatutes.rawValue = "8 § 1326 Reentry of Deported Alien; Criminal penalties for reentry of certain Deported Aliens";
}
if(this.rawValue=="5"){
SelectedStatutes.rawValue = "18 § 2 Aiding and Abetting";
}
if(this.rawValue=="6"){
SelectedStatutes.rawValue = "18 § 4 Misprision of Felony";
}
Is there a way that I can have multiple items selected from the list box that will ALL populate in the text field?
Thanks for any help/advice you can provide.