The value of a checkbox is submitted when it is checked. So set the value of the checkbox to 1. Then in your server action you use the default
formatter to set the value to 0 when no value was submitted (when checkbox was not checked).
1 Like