Quantcast
Channel: Adobe Community: Message List
Viewing all articles
Browse latest Browse all 87158

Re: How to populate table rows with selected listbox items?

$
0
0

Hi Angie,

 

To be able to get the multiple selections you must loop in the items of the listbox, verify if it is selected and then add it to the row if it is selected...

 

To loop through all items and verify it's item state, use the following code:

 

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

     if (ListBox1.getItemState(i) == true){

          xfa.host.messageBox(ListBox1.getDisplayItem(i));

          txtAttendee.rawValue = ListBox1.getDisplayItem(i);

     }

}


Viewing all articles
Browse latest Browse all 87158

Trending Articles