You want to show a button when a checkbox was checked?
When do we know, if a checkbox was checked? Perhaps when some changes were done the first time, right? That means…
$w.onReady(function () {
$w("#checkbox1").onChange((event) => {
let isChecked = $w('#checkbox1').checked;
if(isChecked===true){
//usecase if checkbox is checked
console.log("Checkbox is checked")
}
else{
//usecase if checkbox is unchecked
console.log("Checkbox is unchecked")
}
console.log(isChecked)
});
});
You will get the result in the CONSOLE. Use the console to see it.