I\'m using Node+Express+Jade to render some webpages. On a form there are 2 checkboxes. When the form is submitted through POST, if the checkbox is checked, I get req.
If your default value is false then this solution seems the most straight-forward to me. First set a default with your DB/ORM. I'm using Mongoose so in the model file it's:
published: { type: Boolean, default: false },
Then in the form input element set the value to true:
By unchecking it you'll submit an empty value which defaults back to false.