Get your own customer support community
 

Invalid Checkbox Values

How does one set the value of a checkbox to false or null for unchecked values?

If you use an if statement to check for true/false, you get true when the checkbox is checked (assuming that's the default true value) but you get a blank when it is unchecked. This renders the JavaScript invalid and kills the rest of the script inside that script tag.

If the value is checked, you get a rendered

if (true) { do this ... }


If the value is not checked, you get

if() { do this ... }


which is invalid.
 
sad I’m confused
Inappropriate?
1 person has this question

User_default_medium