li-boolean

Supported Features

Document
Media
Include
Document Creation Flow
Push Message
Table Dashboard
Display Filter
Search Indexing
System Metadata
Webhook Conditions

Description

A simple Boolean value store, represented in the UI with a checkbox which you can toggle on/off.

If you want to have the value set to true during document creation, you can do that via defaultMetadata in your project config.

Default UI

Checkbox

Storage Format

<Boolean>

Content Type Config

{
  handle: 'myContentType',
  // ...
  metadata: [
    {
      handle: 'myHandle'
      type: 'li-boolean',
      config: {
        // common
        hideFromForm: false,                     // optional, default: false
        index: true                              // optional, default: false. Added in: release-2023-07
      }
      ui: {
        label: 'foo',                            // optional, default: start case of handle
        config: {
          readOnly: true                         // optional, default: false
        }
      }
    }
    // ...
  ]
}