I made a post yesterday talking about my website, I am working on making a bot appear when someones work has been approved. However i did get much help off of that, But now when i try to use the script i write i get " TypeError: Cannot set property hidden of # which has only a getter "
I don’t know what that means, Now i may just be an idiot yes however i haven’t wrote anything in Javascript before.
Here is my code if you wanna see:
let query = wixData.query("CommunityDiscordBots");
if (("approved").boolean === "true") {
console.log("false");
$w("#approval").hidden = "false";
} else {
console.log("True");
$w("#approval").hidden = "true";
}
}
I am sorry i am really confused. Here is my previous post:
https://www.wix.com/corvid/forum/community-discussion/how-to-use-a-boolean-to-show-an-object
If someone can help me with this that would be greatly appreciated…