Fields with Checkboxes

If an attribute is defined with a datatype of Boolean, the form shows that attribute's label followed by a single checkbox in Edit mode. Checked=true; clear=false. In View mode, the value of the field (TRUE or FALSE) is shown.

The Input Type = checkbox setting does not need to be specified. You can specify the Read Only Checkbox=true setting on the field so it shows as a checkbox in View mode. As an alternative, you can use the radiobutton or combobox value for the Input Type setting to use those formats instead of a checkbox.

In addition, if the attribute datatype is defined as a string, it can also be treated as a Boolean if the range values for the string are listed in the emxFramework.UIForm.Checkbox.BooleanValues property in emxSystem.properties. The attribute must only have 2 values, and both values must match a pair defined for this property (not case sensitive). The field must also have the Input Type = checkbox setting defined (by default, range values show in a combobox).

The Read Only Checkbox=true setting is also required if you want to show the checkbox instead of the text value in View mode. For example, if the attribute datatype is string with range values of Yes and No, the form shows that field as a checkbox, where checked=Yes and clear=No (as long as Yes/No are defined in the property listed above).