Play a little bit with console.logging …like…
$w.onReady(()=>{
let selOptA=$w("#checkboxGroup1").selectedIndices; console.log(selOptA)
let selOptB=$w("#checkboxGroup2").selectedIndices; console.log(selOptB)
console.log(selOptA).length
console.log(selOptB).length
if(selOptA.length && selOptB.length === 6){
$w("#button1").enable();
}else{
$w("#button1").disable();
}
});
Take a look into —> CONSOLE! (Press F-12 in Google-Chrome and navigate to —> CONSOLE, or use the integrated CONSOLE of your Wix-Editor)
Now you are able to investigate your own coded CODE.