I try to make forms with tristate check boxes that have a ‘not defined’ value as their default state. I want this because I want to force the users of the form to click every check box at least once. This way I know that they entered the information knowingly and don’t just pass the check box values without thought.
However as soon as I set NOT NULL in the table properties for the relevant collumns, the check boxes suddenly behave with 0 as their default value in the form, even though the check box control settings of the form are unchanged.
It looks like the default value from the table properties is forced over the check box control settings of the form. The check box only shows a default ‘not defined’ state if the collumn has a ‘not defined’ default state defined in the table properties and it proves to be inpossible to enter a ‘not defined’ default state in the table properties as long as a NOT NULL attribute is set to that collumn. I tried this (setting NOT NULL with default NULL) through the table editor gui and through sql (with the help of mysql workbench).
Am I facing a bug here? Or is there another way to get a working default ‘not defined’ check box on a collumn with NOT NULL attribute?
I am using LO Base 6.0.3.2 Build ID: 1:6.0.3-0ubuntu1 connected to an online MySQL database through driver: mysql-connector-java-5.1.45 on Xubuntu 18.04