Have a select list. On an event, remove selected item.
var selectlistItem = IWDatacapture.getItem(selectListPath)
var selectedChoice = selectlistItem.getValue();
alert (selectedChoice);
IWDatacapture.getItem(selectListPath).removeOption(selectedChoice);
The alert pops up with 0 or 1 or whatever was chosen.
If I hard code the remove statement like this: removeOption(0) it removes the first selection. The FormAPI page says the parameter is an index, I assume that means var.
Also, what can I use to get the Label of a selected item ? I can easily get the data, but cannot find the a way to get the label.
[answered my own here: getOptions().txt ]
Tips/Pointers/RTFMs appreciated
Andy