how to set in formapi a radio item to selected.?On item change radio item should selected.
You can use IWITEM.setValue(valName) whereas valName is the number of the zero-based index of the option to select.
IWDatacapture.getItem("/content/metadata/region").setValue(3);
This doesn't seem to work for checkboxes. For example IWDatacapture.getItem("/content/metadata/region").setValue(3); Is there another way to mark multiple checkboxes as selected on an event (like clicking a 'Select All' checkbox)?
var temp = IWDatacapture.getItem("/content/metadata/region");if (temp != null) { var optionsArray = temp.getOptions(); for (i=0; i<optionsArray.length; i++){ optionsArray.selected = true; } temp.setOptions(optionsArray); }
Could be possible to disable a checkbox-option?Something like option.disabled = true