How to change the option for a select object on a form?

select on a toolbar has an API for changing the selected option setListOptionSelected(), how would you go about changing the option programmically on a form?

I tried setItemValue() and setting selectedIndex, nothing appears to be happening on the gui.

Hi

for form:
{type: “select”, name: “test”, options:[
{value: “1”, text: “one”},
{value: “2”, text: “two”}

]}

myForm.setItemValue(“test”, “2”);

Thanks!