Afform: checkboxes should have default false value
Overview
If you have a checkbox used, for example, for "is_test" on a contribution search table but without explictly configuring a default value, the UI shows an un-checked checkbox, which should be the visual representation of "is_test = 0" but is actually representing no filter on is_test.
After operating the checkbox the UI and the meaning are in-sync.
While this can be solved by the form builder designer setting an explicit default value, there is no logical sense to not having a default value when the form element is binary.
Current behaviour
If person who built the form forgets / does not know to include a default value on a checkbox, the UI is initially broken, results are misleading.
Proposed behaviour
A checkbox should insist on a default value, defaulting to false, so that the UI and the meaning of the filter are always in sync.
Comments
https://chat.civicrm.org/civicrm/pl/9613mtpi6j8ypxf879p7eyyz5a