Hi Tal,
it’s not working on me
$w.onReady(function () {
for(let i=1 ; i < 5; i++){
$w(`#checkbox${i}`).onChange(()=>{
const checkBoxes = ['yellowBox', 'greenBox', 'whiteBox', 'redBox', 'orangeBox'];
let filtered = checkBoxes.filter(item => item !== `checkbox${i}`);
filtered.forEach((checkbox)=>{ $w(`#${checkbox}`).checked = false; });
});
}
});
Here is my editor page —> https://editor.wix.com/html/editor/web/renderer/edit/e59190d7-a71b-4b09-a759-68b4282a2eb3?metaSiteId=f157fc7c-10d6-4ee0-b15c-4ce6e8e056dd&editorSessionId=FFE0F41E-3B1C-4D42-8FBE-CAA8857D8682&referralInfo=my-account