Skip to content

Special fields: identifiers, modules and appearance

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.

Barcode string.

Options: Shared field options; no extra API defaults.

{"identifier": "example_barcode", "type": "barcode", "options": {}}

Color string.

Options: Shared field options; no extra API defaults.

{"identifier": "example_color", "type": "color", "options": {}}

Icon identifier string.

Options: Shared field options; no extra API defaults.

{"identifier": "example_icon", "type": "icon", "options": {}}

Unique identifier string.

Options: Shared field options; the SPA field model can generate an initial identifier.

{"identifier": "example_uniqid", "type": "uniqid", "options": {}}

Computed, immutable incrementing identifier.

Options: incrementing_format defaults to INCREMENTING_VALUE. Format tokens separated by |: TEXT%literal, DATE%Y, INCREMENTING_VALUE%4. Generated values are not ordinary editable fields.

{"identifier": "example_incrementing", "type": "incrementing", "options": {"incrementing_format": "TEXT%R-|INCREMENTING_VALUE%4|DATE%Y"}}

Reference to a module.

Options: use_identifier: false (numeric foreign key); true stores the identifier string. In identifier mode nullable: false; numeric mode is nullable.

{"identifier": "example_module", "type": "module", "options": {"use_identifier": true}}

Numeric foreign key to fields.id.

Options: Nullable; shared options, no type-specific API options.

{"identifier": "example_field", "type": "field", "options": {}}

Layout specification stored as long text.

Options: Shared options; no type-specific API defaults.

{"identifier": "example_layout", "type": "layout", "options": {}}