setValue()
sets the value for a CheckboxGroup control
setValue(value: {[id: string]: boolean | string}): void;
Parameters:
value: object
- the value to be set. The object contains a set of key:value pairs where key is the id of a checkbox and value is the state of the checkbox
Example
form.getItem("CheckboxGroup").setValue({
"checkbox_id_1": true,
"checkbox_id_2": false,
"checkbox_id_3": true
});