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

Dropdown values in change event not returning current value

$
0
0

Hi,

 

I have a dropdown which I am populating using javascript as per Brad's post here http://blogs.4point.com/brad.white/2010/03/populate-a-drop-down-with-a-web-service-in-a-pd f.html .

 

I have hooked up the change event of this dropdown to show the new selection in a seperate text box as below

 

//ApplicationForm.Page1.ddlUsers::change - (FormCalc, client)

 

txtSelected.rawValue = ddlUsers.rawValue

 

This code is works, but shows the previous (or last) values that was selected in the dropdown but not the current value which was selected by the user. I also tried using selectedIndex instead rawValue on ddlUsers but it has the same behavior. The dropdown's "Commit On" is set to "Select"

 

Am I missing something here? how do I get the current value that is selected into the dropdown.

 

Thanks

Shreedhar


Viewing all articles
Browse latest Browse all 5571

Trending Articles



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