Field types · Logical
Logical logical
Boolean Yes/No field. Stored as true, false, or empty (null). Fill mode uses inline click-to-cycle — no modal.
At a glance
- Schema type:
logical - Value: true | false | empty (null)
- Use when: Yes/No acknowledgments, flags, consent checkboxes, boolean CRM fields.
Type properties
Options that appear only for Logical fields. Shared options (Label, Field Name, Required, …) are on Field types → Common properties.
- Default value
- Starting state when the field is empty: Empty (unset), Yes (true), or No (false). Applied via resolveDefaultValue when the runtime value is empty.
Details
- Boolean Yes/No field for acknowledgments, flags, and consent-style prompts.
- Stored runtime value is true, false, or empty (null in templates / unset state).
- Fill mode: inline click-to-cycle — empty → Yes, then Yes ↔ No. No picker modal.
- Export, preview, and PDF display the value as Yes or No (empty stays blank / emptyLabel).
- isEmpty is true only when the value is neither true nor false — required fields treat unset as blank.
- Optional schema.defaultValue: true, false, or null/undefined (Empty in the Properties panel).
Schema
TypeScript (editor package)
interface LogicalFieldSchema extends FieldSchemaBase {
type: 'logical';
defaultValue?: boolean | null;
}Value example
{
"sections": {
"Consent": {
"Agreed to terms": true,
"Marketing opt-in": false,
"Reviewed by clinician": null
}
}
}Fill behaviour
Unlike Choice or List, Logical does not open a modal. Clicking the field token in fill mode cycles the boolean state in place so Yes/No decisions stay fast inside the document.
- Empty (unset) → first click sets Yes (true).
- Yes ↔ No on subsequent clicks.
- Clear / empty is available when the field is not required and the host UI allows reset to empty.
Display & export
- formatDisplay: true → "Yes", false → "No", empty → emptyLabel or blank.
- PDF render mode is plain text (Yes/No), not a checkbox glyph.
- Mapping from Salesforce checkboxes / boolean fields should supply true/false; leave unmapped for empty.
Other field types
TextNumberDateChoiceListTreeTablePivot tableImageSignatureBarcodeComputedChild / repeater