v2.0 Combo Control - Value vs Text
I want to replace a standard html dropdown with the AW combo control. In the standard control is have items such as:
<option value="5" >123 Main St.</option>
The item has a value AND text associated with it. The dropdown keeps up with the "selectedItem" offset and I can query the value using something like
With the AW combo I don't know how to associate a value with the text of each item. I set the text with setItemText and then tried using:
myAWcombo.setItemValue(["7", "12", "19", "20"]);
This doesn't cause an error but doesn't seem to help either. A call to myAWcombo.getControlValue() later will return the text instead of the value.
I also can't find a way to tell the offset of the selected item. If I could then I would just pull the value out of a JS array directly.
Does anyone know how to do this?