Categories
#Data in DCR Process Models

Boolean – a checkbox or radio button

Release Date:
26/03/2025

In a form we support a checkbox as well as a boolean field. We normally expect that a checkbox is either true or false, but when opening a form what is the initial value of the checkbox? As nobody has entered any value into the field yet it is most correct to assume the value of the checkbox has no value, yet.

In DCR a checkbox have two values, true or null.

The boolean field have three values, true, false or null.

The semantics of any form where fields might not have values initially leads to the need to support boolean fields in this manner. Making the boolean field mandatory, initial pending, ensures the value will either be true or false once filled out. As the field is a radio button the user cannot reset the value, i.e. clearing the value of the field.

The difference between a boolean and a checkbox is shown below.