Choice and relation fields
All types also accept common field options. Defaults below are API defaults unless marked SPA. Unspecified presentation options have no universal default; the active widget decides.
checkbox
Section titled “checkbox”Boolean.
Options: default: false. SPA mode: "switch" uses a switch.
{"identifier": "example_checkbox", "type": "checkbox", "options": {"default": false}}choice
Section titled “choice”Choice from fixed or generated values.
Options: values: list of keys; source: countries/languages/currencies in the Bakery generator; multiple: false. SPA also supports dynamic sources such as module and agent-models. SPA mode: select/radio/buttons/checkbox/transfer, columns, enable_search, allow_clear. Labels use modules.<module>.choice.<field>.<value>.
{"identifier": "example_choice", "type": "choice", "options": {"values": ["open", "closed"]}}select
Section titled “select”One related entity (or several when multiple is true).
Options: references is required. multiple: false. referencedBy: {module, field} defines an inverse relation; fields is a list of field identifiers to load, with loads nested relations, depth controls loading. pre_filters: [] (DNF). SPA: hideSearch, edit_options, inline, add_options, sort, sortField, sortOrder.
{"identifier": "example_select", "type": "select", "options": {"references": "users"}}multiselect
Section titled “multiselect”Several related entities.
Options: references is required; shared relation loading and pre_filters options are as for select. SPA mode: select/transfer, ordered, table_select, max_tags.
{"identifier": "example_multiselect", "type": "multiselect", "options": {"references": "users"}}