Hi,
I have a dcr which has a select item
[html]
Select Outcome title. This is a required field.
[/html]
Using FormApi I want to get the value of the selected item. However, I can only seem to get the index value of the select items.
In the javascript file I have
IWEventRegistry.addItemHandler("/area", "onItemChange", setName);
function setName(areaItem) {
var areaVar=IWDatacapture.getItem("/area");
for (a in areaVar.getOptions()) {
alert (a);
}
}
I now get a prompt for the index of each item in the select item but nothing I do will give me the value from the select item definitions.
I have tried all sorts of combinations of getOptions[].getValue() and getValue[].getOptions[] or similar.
Any one any ideas ?
Thanks.
Teamsite 6.1 sp2 on W2k3.