li-string-list

Supported Features

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

Description

Requires a dataProvider to work.

Display Filters support Added in: release-2023-09

Default UI

Multiselect input

Storage Format

[<String>]

Content Type Config

{
  handle: 'myContentType',
  // ...
  metadata: [
    {
      handle: 'myHandle'
      type: 'li-string-list',
      config: {
        // common
        hideFromForm: false,                     // optional, default: false
        required: true,                          // optional, default: false
        requiredErrorMessage: 'Provide a value', // optional
        index: true,                             // optional, default: false. Added in: release-2023-07
        // specific
        dataProvider: { // required
          // Option 1 - list of items
          type: 'labelValuePair',
          items: [
            {label: 'Item A', value: 'a'},
            {label: 'Item B', value: 'b', isDefault: true}, // isDefault sets the value if document opened the first time
            {label: 'Item C', value: 'c'}
          ]
          // Option 2 - DataSource
          dataSource: 'labelValuePairDataSource'
        }
      },
      ui: {
        label: 'foo', // optional, takes camelized name otherwise
        config: {
          readOnly: true, // optional, default: false
        }
      }
    }
    // ...
  ]
}