Uncheck a checkbox if another checbox is checked

Hi Chloe,
in the code Tal sent you above, which was just an example, please pay attention specifically to this line here:

for (let i = 1; i < 6; i++){
  $w(`#checkbox${i}`).onChange

now $w selector used with ‘#’ means - look for an element in the page with such an id, to apply the on change on. you however do not have elements with such ids.
you have yellowBox, greenBox etc
you just need to modify the code to match the ids :wink:

like Tal, i also recommend you choose radio buttons. the difference between radio and checkboxes is single select vs multi select

good luck,
Shlomi