Select an item from a richselect or combo from js

Hi,

I have a richselect working just fine. But, I need to be able to select one if its values from within the js program, not just by the user making a selection. setValue doesn’t seem to work. I see that getList() has a select method, but that doesn’t seem to work either. The id to my richselect list is a product code and I’m trying setValue with a valid product code.

Thanks.

A little more info…if I use setValue something happens because the onChange event for the richselect gets fired. But the field doesn’t show the option selected.

I believe I found my problem, and setValue does work fine.