How to select all in a check box group component

Hey there,

i'm attempting to add a "Select All" option to my checkbox Group component. Is this something that is possible to do?

I've attempted to change the selectedIndexes in a javascript function but it seems to have no effect on the checkboxGroup component

checkboxGroup.selectedIndexes['1', '2', '3' ]

Screen Shot 2023-03-13 at 10.15.16 AM

Hi @ovryu Thanks for reaching out! I believe is a read only value that evaluates to the currently selected indexes.

For your use case, you should be able to use .setValue with an array of each item's value property:

1 Like