I am having difficulty getting the true/false from a checkbox. I have setup the checkbox by adding an attribute called checked which is bound to a bool in an array. Then on input (or change) event I want to get the value. But when I go into the editor all I can see is event-target-value. How do I get the checked state?
Lucas G
4 months ago
On input just set the variable to the reverse of its current state
variable -> not node
Dov
4 months ago
Ok.
Dov
4 months ago
Another quick question - is this the correct way to bind the variable? The data is set to true, but when loading it seems to flash true then goes false.
Lucas G
4 months ago
You could try adding a Default to node
Default to false
Dov
4 months ago
Sorry, what does that mean (I am not sure where to do that)?
Lucas G
4 months ago
There is a node called default to
It is a very useful node. I personally use it often
Dov
4 months ago
Is this what you mean? I am not sure what a node is ๐ฅ