The widget is inside the form, however
form.reset()
does not clear the previously selected values of CheckedMultiSelect.
var list = new CheckedMultiSelect({
dropDown: true,
labelText: 'States',
multiple: true,
name: 'state',
onChange: getValues,
required: false
}, "stateSelect");
I have tried code below but it doesnt work.
list.reset()
Thanks in advance
You can change the value of CheckedMultiSelect
via list.set('value',[...])
. The selection is updated immediately, when the list is not empty...
To clear the selection, call:
list.set('value',[]);
list._updateSelection();
Tested on Dojo 1.9.2.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With