Hi, I have a problem with saving boolean value, don’t want to start a New post. Here is the code
let value = $w(“#switch2”).checked ;
let myCheckbox2 = $w(“#switch2”);
myCheckbox2.checked = !myCheckbox2.checked;
$w(“#dataset2”).setFieldValue(“status”, false );
I succeed to change switch state to off but the boolean value didn’t save in field in Preview and Live . I check all my permissions to DB are settled to Anyone. dataset READ/WRITE. My second option could be to save the switch2 state value once is settled to false but tried to find API references to save switch state value…Found nothing about!