Page 1 of 1

Checkbox field strange behavior

Posted: Sun Oct 12, 2025 7:55 pm
by Uzlander
HI there!
So, i cloned an object, turned it into a checkbox and intended to assign it some function/logic.
To my surprise it outputs always 'ON' (probably meaning TRUE) no matter if its checked or unchecked

Re: Checkbox field strange behavior

Posted: Sun Oct 12, 2025 8:27 pm
by steven
Hi Uzlander,

What is the code that outputs this value to the console?


Steven

Re: Checkbox field strange behavior

Posted: Sun Oct 12, 2025 8:37 pm
by Uzlander
console.log('myCheckBox val: '+ $('#history_tab').val());

Re: Checkbox field strange behavior

Posted: Sun Oct 12, 2025 8:43 pm
by Uzlander
Oh, pardon me, it should be $('#history_tab:checked').val() instead. Got it!

Re: Checkbox field strange behavior

Posted: Mon Oct 13, 2025 4:32 am
by kev1n
It's easier to use nuGetValue('history_tab') (retruns true, false)