Hi, many thanks for your response. I am trying the following code but all results are defaulting to white (even when approved = false)
let query = wixData.query("MembersOnly");
if (query.eq("approved", true)) {
$w("#box").style.backgroundColor = "#FFFFFF";
} else {
$w("#box").style.backgroundColor = "#08306D";
}
query.find()
.then((results) => {
$w("#rptMembers").show();
});
What am I missing?!