This topic is locked
[SOLVED]

 set value for dropdown

8/6/2010 3:12:26 PM
PHPRunner General questions
W
wpl author

Hi all,
I know how to get the selected value of a dropdown in PHPRunner 5.2 (ie ctrlDropDown.getValue()). But - how do I set a different value as the selected item?



ctrlDropDown.setValue(aStringFromTheDropDown)



will not work - it will not select the correct item. On the contrary,



document.getElementById("idDropDown").value = aStringFromTheDropDown



will work as expected. Any help available? Could not find help in the documentation.
Thanks a lot.
wpl

J
Jane 8/9/2010

Hi,
thank you for pointing me to this bug.

We'll fix it in the next update.
To make your pages working use this code:

ctrlDropDown.setValue([aStringFromTheDropDown])
W
wpl author 8/9/2010



Hi,
thank you for pointing me to this bug.

We'll fix it in the next update.
To make your pages working use this code:

ctrlDropDown.setValue([aStringFromTheDropDown])



Jane,
thanks. I think I can live with this workaround.
regards
wpl