Hi Shlomi,
Thank you for the kind reply. I choose the check box because it is customizable, I want specific color and name for each checkbox.
I adjust my button Id’s, and change it to “checkbox, checkbox2, etc” to match the code but it still don’t change anything. still don’t do what I want.
$w.onReady(function () {
for (let i = 1; i < 6; i++) {
$w(`#checkbox${i}`).onChange(() => {
const checkBoxes = ['checkbox', 'checkbox2', 'checkbox3', 'checkbox4', 'checkbox5'];
let filtered = checkBoxes.filter(item => item !== `checkbox${i}`);
filtered.forEach((checkbox) => {
$w(`#${checkbox}`).checked = false;
});
});
}
});
#checkbox, #checkbox2, #checkbox3, #checkbox4, #checkbox5