DocEngine

Field types · Choice

Choice choice

Single-select from inline items or a shared catalog list.

At a glance

  • Schema type: choice
  • Value: string (selected label) or empty
  • Use when: Single option from a fixed set (Yes/No, status).

Type properties

Options that appear only for Choice fields. Shared options (Label, Field Name, Required, …) are on Field types → Common properties.

Options source
Where choices come from: Manual list (edit options here), Shared catalog (host commonListId), or Remote search (sourceCollection at fill time).
Options / Shared catalog / Source collection
Manual: configure option labels (and optional codes). Catalog: pick a shared list from createEditor catalogs. Remote: pick a collection; options load when the user searches.
Label field
Remote only — which collection field to show as the option label (or Auto: name / title).
Show codes in picker
Remote only — show code + label in the fill picker when the catalog supports codes.
Default value
Pre-selected option label (Choice) or comma-separated labels (List) applied when the field is empty.
Allow manual edit
Users can type free text outside catalog options when filling the document.

Details

  • Options from schema.items or commonListId (host catalogs).
  • Stored value is the selected label string (or empty).
  • Optional withCode for code+label catalogs.
  • Prefer List when the user needs multi-select.

Related

Other field types

← All field types