Purpose: I need to programatically set the "checked" property of certain CheckboxGroup options.
I understand that a CheckboxGroup contains an options Array, each option containing a name and a value.
I am having trouble understanding how Wix reads and writes the checked property of each option. As far as I can tell, that does not exist.
A) Does Wix automatically generate a Checkbox for every option? If so, how do I access those Checkboxes and set the .checked property?
B) If not, then how does a dataset read the checked property on each option of a CheckboxGroup?
CheckboxGroup has a property called "selectedIndices", which is an array with the indices of selected items. By setting this property, the proper values are selected.
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