Quantcast
Channel: Adobe Community : All Content - LiveCycle Designer
Viewing all articles
Browse latest Browse all 5571

Listbox's selected values to textfield

$
0
0

HI ,

 

The following code is populating the text field with selected item name(s) from the list box whether a single or multiple. But I want to have bound values to those item name in the text field instead. Please help. This code is working fine but only with item name returning to text field.

 

Thanks

 

TextField.rawValue = "";

//loop through items in listbox

for(i = 0; i < ListBox.length; i++)

{

         //if item selected

          if(ListBox.getItemState(i))

          {

                    //check if Text field value if null

                    if (TextField.isNull)

                    {

                              TextField.rawValue = ListBox.getDisplayItem(i);

                    }

                    else

                    {

                              TextField.rawValue = TextField.rawValue + " " + ListBox.getDisplayItem(i);

                    }

             }

}


Viewing all articles
Browse latest Browse all 5571

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>