Inverting the submitted value of a Forms 2.0 Checkbox
A checked Checkbox doesn’t always mean String “yes”/Boolean true. Depending on your form logic and db schema, checked may correspond to “no”/false in the database, while unchecked is “yes”/true. The Forms 2.0 library assumes checked means “yes” but with some crafty code we can flip it. →