If the checkbox name and value matches the table field name and value then it will be checked in case you have use the "Form data provider" under the "Display section" action to populate all the form fields.
As I understand it, if the value from the database (eg, 1) is the same as the checked value of the checkbox (1), the checkbox will be checked.
However, what if the checkbox is checked by default (1), and I need to retrieve (0) from the database to get it unchecked?
Checkbox details:
Value = 1
Checked by default = yes
Enable ghost = yes
Ghost value = 0
Data value: {var:table.row.Model.checkbox}
{fn:checked_status_switch}Create a switch action called checked_status_switch, or a PHP action whatever, and return "checked" when you want it checked, don't return anything when you want it unchecked.
