Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Wix Corvid: CheckboxGroup: Where's the 'checked' property?

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?

like image 309
Acea Avatar asked Dec 17 '25 09:12

Acea


1 Answers

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.

like image 180
Acea Avatar answered Dec 20 '25 00:12

Acea