Field configuration reference
Section titled “Field configuration reference”This page is for integrators and developers who read or write entity definitions or entries through the API, or who need to know exactly how the platform stores and enforces a field’s settings. It covers the storage model behind the field types, the stored form of the settings the builder shows, and the technical notes for individual field types.
Storage types and field kinds
Section titled “Storage types and field kinds”It helps to keep two distinct concepts apart:
- Storage data type (
dataType) — a small, closed enum that describes how a value is stored and cast (text, number, date, boolean, blob, entity reference, JSON, and so on). This is the field’s storage contract. - Field kind — the semantic field a builder actually chooses (plain text, long text, password,
phone, image, reference, category, switch, map, …). The platform recognizes a kind by inspecting
both the
dataTypeand the configured edit component (and sometimes further options).
A single storage type backs many kinds: Text, for example, is the storage type behind plain
text, long text, password, and phone fields, each distinguished by its edit component. Keeping the
two layers separate explains why two fields that store the same underlying value can behave and
render very differently.
An intermediate role layer
Section titled “An intermediate role layer”Between the roughly fifteen primitive storage types (DataTypeEnum) and the roughly thirty-five UI
field kinds sits a thin layer of semantic-role tokens (such as MAIN_TITLE, SUB_TITLE,
PICTURE, CATEGORY) that tag a field with the presentation role it plays rather than how it
stores or edits its value. This layer is marked in-code as temporary, so treat it as an
implementation detail that may be folded away later; rely on the storage type and the field kind as
the stable contract.
Storage data types
Section titled “Storage data types”The storage layer is a closed enum of data types, including text, number, date, time, date-time,
boolean, blob (files and images), entity references, icons, nested blocks, localized JSON, GeoJSON
(maps), and JSON. Inline SVG (SVGIcon) was added Since 1.8. On save, submitted values are
coerced toward their storage type by a per-type caster; types without a registered caster pass
through unchanged.
Field kinds and their storage types
Section titled “Field kinds and their storage types”The kinds a builder can pick in the entity designer, with the label the designer shows and the storage type behind each:
| Designer label | Storage type (dataType) | Notes |
|---|---|---|
| Text | Text | Also offered as a display-only variant |
| Long-text | Text | Display-only variant; rich-text modes, see Rich text |
| Localized Text | LocalizedJson | Display-only variant |
| Localized Long Text | LocalizedJson | Markdown only; display-only variant |
| Password | Text | Stored as a one-way hash, see Password |
| Phone | Text | See Phone formats |
| Number | Number | |
| Sequence Field | Number | Auto-increment, see Sequence |
| Year | Number | |
| Date | Date | |
| Month | Date | Min/max as month numbers, see Month |
| Month-year | Date | |
| Time | Time | |
| Date-time | DateTime | |
| Boolean | Boolean | |
| Switch | Boolean | |
| Category | Json | See Category |
| File, Image, Document, Video | blob | See File constraints |
| Icon | Icon | |
| Map | GeoJson | See Map |
| Reference | Entity | See Reference data sources |
| User | Entity | References the user entity, see User pointers |
| Application Reference | Entity | See Application Reference |
| Mapped Field | the source field’s type | See Mapped field update modes |
| Block | Block | See Block rows |
Kinds registered as hidden — JSON, SVG Icon, Page Reference, Number Enum and the Sensitive Field Selector — and the Data Query Selector control are not offered by the designer; they are described on Internal field types.
Capability flags
Section titled “Capability flags”When a kind is registered it declares a set of capability flags that govern how the platform lets that kind be used — independent of any single field’s configuration:
supportUniqueOption— the kind may be marked unique (enforced by a database unique index).supportSearchable— the kind can participate in full-text search (searchIndex.fullTextSearch).supportAdvancedDefaultValue— the kind accepts expression- or pointer-based default values, not just a literal.fieldQueryOptions— which filter operators and pointers the kind exposes in the query builder.overwriteFieldOption— per-kind overrides for searchable / queryable / display-only / auto-increment behavior.
These flags explain behavior that is otherwise surprising: a JSON field is neither searchable nor queryable (model data you need to filter on as real fields instead), a Sequence field is always auto-increment and locked read-only, while Number and Boolean fields are queryable.
Which kinds can be marked Unique (supportUniqueOption): Text, Long-text,
Localized Text, Localized Long Text, Phone, Number, Date, Time, Date-time, Month,
Month-year, Year, Reference, User (and the hidden Page Reference and Number Enum).
Which kinds support Multiple (supportMultipleOptions): File, Image, Document,
Video, Category and Reference with a configurable minimum and maximum; User and
Application Reference without one.
Validation and cardinality
Section titled “Validation and cardinality”Several concerns apply regardless of the kind you choose; the per-kind pages reference them rather than repeat them:
- Validation — every field carries a validation model (required, min/max, regex, file extensions, and localized-value rules). Localized-value validation modes were added Since 1.4. Custom expression-based validations run on top of the built-in rules.
- Cardinality — any field can be made multi-value (an array of its own values) and/or
repeatable (the field or block repeats). Index-safe handling when repeatable items are removed
landed Since 1.6.
Since 1.10, a category field can be multi-value too, and it is the only kind whose multi-value minimum/maximum count is enforced on save — see Category: multiple values. AlsoSince 1.10, each row of a repeatable block carries a stable__id, so per-row locked and sensitive values follow the row rather than its position — see Block: stable row ids. A save through a view keeps the block columns the view does not grant (Since 1.4) and, from release 1.10.1, restores them only for rows matched by__id— see Block: saving rows through a view. - Calculated values — a field can be computed from an expression, driven by calculation
triggers and an execution scope; the scope (create-only, update-only, or always) gates every
trigger, including a field-change (
OnFieldsChanged) trigger, not just save-time ones. - Sensitive fields — a field can restrict read access to granted users or groups, returning a mask to everyone else. Since 1.8. Reference and block fields cannot be marked sensitive.
- Encrypted fields — a field can instead be stored as ciphertext at rest and revealed one value at a time by a decrypt action. Since 1.10. Encrypt is a separate option from Sensitive, and the two are mutually exclusive on the same field. See Encrypted fields.
- Uniqueness and display roles — field names are unique within an entity, and title/summary roles (title, main number, main date, and similar) may be held by at most one field each.
Calculated values
Section titled “Calculated values”On the per-kind pages, what the Default Value → Advanced toggle configures — a script
expression plus its triggers — is stored on the field as options.calculatedValueOptions:
{ "expression": "value.price * value.quantity", "calculationTriggers": [ { "type": 3, "triggerOptions": { "watchedFields": ["price", "quantity"] } } ], "executionScope": 2}| Property | Required | Type | Meaning |
|---|---|---|---|
expression | no | string | the expression evaluated to produce the field’s value |
calculationTriggers | yes | array | when to recompute; each trigger type may appear at most once |
calculationTriggers[].type | yes | number | a CalculationTriggerEnum value (table below) |
calculationTriggers[].triggerOptions | no (nullable) | object | { "watchedFields": [...] } — normalized names of the fields watched by field-based triggers |
executionScope | no | number | an ExecutionScopeEnum value (table below) |
The trigger types are the four options the UI describes as page load, form submission, entry
change, and field change (CalculationTriggerEnum):
| Value | Name | Fires |
|---|---|---|
0 | OnFormOpened | when the form opens; server-side it applies to creation only |
1 | OnSave | when the entry is saved |
2 | OnEntryChanged | when the entry changes |
3 | OnFieldsChanged | when a field listed in triggerOptions.watchedFields actually changes value |
The execution scope decides which saves recompute the value (ExecutionScopeEnum):
| Value | Name | Recomputes |
|---|---|---|
0 | NewEntries | on create only |
1 | ExistingEntries | on update only |
2 | AllEntries | on every save |
When executionScope is absent, the server-side save-time gate never passes: the field is not
recalculated on save at all. Set it explicitly on any field you expect the server to keep current.
Where the expression is evaluated
Section titled “Where the expression is evaluated”The same stored expression is evaluated in two places: the form evaluates it live as the triggers fire, and the server evaluates it again inside save-time validation. For writes that arrive through the API, the server-computed result is applied in exactly two cases:
- the field is locked or hidden — the submitted value is overwritten by the calculated result (a lock never suppresses the field’s own calculation; the two are designed to pair); and
- the field is omitted from the payload and has no default value — the calculated result fills it.
An explicit value submitted for a calculated field that is neither locked nor hidden wins over
the calculation. Server-side recalculation also has gates: the field needs at least one trigger
other than OnFormOpened, an executionScope matching the operation (absent scope — never), and
an OnFieldsChanged trigger additionally requires that a watched field’s value actually changed.
OnFormOpened never fires on update; on create it does trigger server evaluation (even without an
executionScope) to fill omitted values, while for locked or hidden fields the value the form
already computed is preserved.
The practical rule for API callers: you may omit a calculated field whenever it is locked or
hidden, or its triggers and scope let the server fill it; a field whose only trigger is
OnFormOpened, or whose executionScope is unset, is not recalculated on save — supply the
value yourself.
The designer maps onto this payload as follows: Advanced turns on
options.isAdvancedDefaultValue; Type expression is expression; Execution
Triggers (shown only while Lock Field is on) is the first entry of
calculationTriggers, with On page load = 0, On save = 1, On entry
change = 2 and On field change = 3 (Watched fields fills
triggerOptions.watchedFields); Execution Scope is executionScope, with New
entries = 0, Existing entries = 1 and All entries = 2. Choosing a
trigger resets the scope to 0, and with On page load only 0 is offered.
Locked fields on the server
Section titled “Locked fields on the server”Locking is enforced on the server, not just in the form. A save that submits a new value for a locked field — whether from a user, a reaction, or a direct API call — still succeeds, but the submitted value is silently discarded and the field keeps its stored value (or its default value when the entry is created). The check does not distinguish who is writing, so it applies equally to form saves, direct API calls, and automations; it is bypassed only when the caller explicitly skips validation or when the field is unlocked through a system button’s overridable locked fields. The field’s own calculated value is unaffected: it is still computed and applied while the field is locked, which is why pairing “Lock Field” with a calculated value is the standard way to model a field that the system maintains.
In the designer, a locked field that is also unconditionally required must have a default value, and with Advanced on the expression is mandatory. Block fields cannot be locked.
Encrypted fields
Section titled “Encrypted fields”Encrypt (options.encrypt) is its own field option, not a stronger setting of Sensitive.
Sensitive changes what a reader is shown while the stored value stays plaintext; Encrypt changes
what is stored, writing the value as ciphertext. A field may carry at most one of the two —
saving both raises SENSITIVE_AND_ENCRYPT_MUTUALLY_EXCLUSIVE, and in the field editor switching one
on silently switches the other off.
Which kinds can be encrypted. Four kinds can never be, and the server does not reject them — it
silently normalizes encrypt back to false:
| Encryptable? | Field kinds |
|---|---|
| Never | Reference / relation, block container, switch, category. |
| Yes | Everything else — text and text-like, number, date/time/date-time, boolean, file, image, video, document, icon, SVG icon, localized text, JSON, object JSON, map (GeoJSON). |
Note that this list is not the same as the Sensitive one, in both directions. Sensitive excludes only reference and block fields, so a switch or a category field can be Sensitive but never Encrypted.
Turning Encrypt on clears Searchable. The server force-sets options.searchable = false on
save, so an encrypted value never reaches the shared full-text index — the same thing Sensitive
already does, and the reason supportSearchable (see Capability flags) is not
the whole story for an encrypted field. Encrypt also bars the field from being the entity’s main
title, and — because the stored value is opaque — from filters, query criteria, reaction conditions,
summary aggregates and reports.
Two further properties travel alongside encrypt on the field’s options,
encryptTransitionVersion and pendingEncryptUpgrade. Neither is set by a builder: they are
server-owned bookkeeping for the Upgrade Records transition that toggling Encrypt starts. The full
mechanics — the encryption itself, the decrypt action, the transition, and what an encrypted field
refuses — are on Sensitive Fields.
Mapped fields. A mapped field’s sensitive and encrypt flags are mirrored
from its source field for every update mode, so the designer shows neither toggle
on a mapped field; any value set on the mapped field itself is overwritten from the
source on save.
Read-only rendering and inline editing
Section titled “Read-only rendering and inline editing”Every editable kind has a matching view component that renders its stored value read-only across the contexts where entries appear — Details, Table, Card, and Badge. So a field is described by a pair: an edit component for forms and a view component for display (for example, number has a formatted-currency view, date has a relative “from now / to now” period view, and boolean has a badge view).
The entry content renderer assembles these view components into the final entry layout, honoring the entity’s display option and the view’s style. It supports several layouts: a simple container, a block container, entries-columns, and tabs.
Where a field is editable, the renderer also offers inline editing in place: click (or press Enter) to edit, Esc to cancel, Ctrl-S to save, and auto-save when you click outside the field. Editability is checked backend-authoritatively — in particular for aggregator-entity fields and workflow-step fields, the server has the final say on whether an inline edit is allowed.
Notes by field type
Section titled “Notes by field type”Rich text: Long-text and Localized Long Text
Section titled “Rich text: Long-text and Localized Long Text”The designer’s Type setting on a Long-text field maps onto the stored options:
Normal (none of the flags), Markdown = isRichText, Rich Text =
isRichTextV2, Rich with code = isRichTextV2 plus allowCodeEditor. A
Localized Long Text field offers Markdown only.
For longer multilingual content, the multilingual text field can be edited with formatting instead of plain text. Two rich-editing modes are available:
isRichText— a lightweight markdown mode.isRichTextV2— an advanced rich editor with a fuller formatting toolbar.allowCodeEditor— additionally lets the user switch to editing the underlying source (code) directly.
Rich-text editing uses a roosterjs-based editor. Its toolbar offers Bold, Italic, Underline, Strikethrough, Heading, ordered/unordered lists, Quote, Code, Table, and Clear Format (the markdown mode omits Underline). When an entry is viewed, the stored markdown is parsed and the resulting HTML is DOM-sanitized before it is rendered.
Phone formats
Section titled “Phone formats”The phone input includes a searchable country dropdown so users can pick the country and its dialing code before entering the number. Country data (names, flags, and dialing codes) is sourced from standard ISO country information, and the dial code is shown separately from the number. When no country is selected, the input defaults to the United Arab Emirates (ae); a different default country (ISO code) can be configured for the field.
Stored phone values can be presented in any of the following standard formats:
| Format | Description |
|---|---|
E164 | The international standard: a leading +, country code, then the number with no spaces or separators (e.g. +97150XXXXXXX). |
INTERNATIONAL | The country code with human-readable spacing (e.g. +971 50 XXX XXXX). |
NATIONAL | The number as written within its own country, without the country code (e.g. 050 XXX XXXX). |
RFC3966 | A URI-style form prefixed with tel: (e.g. tel:+971-50-XXX-XXXX). |
By default, phone values are displayed in INTERNATIONAL format when rendered in read-only contexts (details, tables, and cards).
The map field is a Leaflet-based selector. Beyond clicking directly on the map to place a marker, you can search for a place by name: the field performs geocoding and autocomplete through Nominatim and shows a results list, and selecting a result moves the marker to that location. The value is stored as GeoJSON, which the backend validates at boot time via its GeoJSON validator.
File constraints
Section titled “File constraints”This section lets you restrict what can be uploaded to the file field:
- Accepted File Types: Limit the field to specific file types by listing the allowed extensions (the
acceptsetting). Users are then only able to browse and select matching files. - Maximum File Size: Set the largest size (
maximumSize) a single uploaded file may reach. The size is checked in the browser before upload, so oversized files are rejected immediately, and the file is also cast and sanitized on the server after it is received. - Minimum / Maximum Count: When the field accepts more than one file, you can require a minimum number and cap the maximum number of files per entry.
Note: Uploaded files are displayed with a file-type icon that matches the file’s MIME type, alongside the file name and its size shown in a human-readable format.
In the designer these are Acceptable File Types (File fields), Max file size and, when the field is Multiple or Repeatable, Total files size. Both sizes default to 20 MB and Max file size cannot be set above 20 MB.
Password
Section titled “Password”A password field’s stored value is a one-way hash, not reversible ciphertext — this
holds even if the field also has Encrypt turned on, since the password hashing
always wins over encryption for this field kind. There is nothing to reveal, so the
field never offers a decrypt/eye action and always renders as a plain ********
placeholder, with no lock icon either (a lock icon would suggest access could be
granted, which is never true for a password value). The masking also covers the
hover tooltip on table/card/badge views, not just the visible text.
Date pointers and relative display
Section titled “Date pointers and relative display”Filter Pointers
Section titled “Filter Pointers”Instead of a fixed calendar date, a date field can use filter pointers — relative-date tokens that are resolved at run time so queries and default values stay dynamic (they always track the current date rather than a value frozen when the field was configured).
The available date pointers are:
- Now — the current date (and time, where the field carries time).
- Today — the current day.
- StartOfDay, StartOfWeek, StartOfMonth, StartOfYear — the start of the current day, week, month, or year.
These pointers can be used in two places:
- Queries / filters — for example, “entries whose date is on or after StartOfMonth” keeps a filter pointing at the current month without editing it each month.
- Default values — a new entry’s date field can default to Today or Now instead of a hard-coded date.
Relative Date-Period View
Section titled “Relative Date-Period View”For read-only display, the date field also offers a relative date-period renderer that shows how far a stored date is from the present as a fromNow / toNow expression (for example, “3 days ago” or “in 2 weeks”) rather than an absolute date.
In the query builder the pointers are offered as @now, @today, @StartOfDay,
@StartOfWeek, @StartOfMonth and @StartOfYear. In an expression, the scope
helpers scope.today() and scope.StartOfMonth() return dates.
Month: minimum and maximum
Section titled “Month: minimum and maximum”A month field also accepts a minimum and maximum value constraint, entered and validated as a plain month number (1–12) — not as a date — so, for example, a {min: 1, max: 12} configuration is valid on a month field the same way it is on a number field. If no minimum or maximum is set, any month is accepted.
Reference data sources
Section titled “Reference data sources”Beyond Entities and Lists, a reference field’s data source can also be bound to a view, a module, a saved query, or a collection. This lets the dropdown draw its options from a filtered view, a module’s objects, the result of a saved query, or a stand-alone collection instead of a whole entity.
Filter pointers are relative tokens you can apply to keep the option list scoped to the current user’s context instead of hard-coding values. The available pointers depend on the chosen source and include:
- Me — the current user.
- MyGroups — the groups the current user belongs to.
- MyRoles — the current user’s roles.
- MyOrgUnit — the current user’s organizational unit.
Parameterized queries: when the source is a query, you can pass parameters into it so the fetched options react to other field values or to runtime context.
Preserve value on edit: the reference field can keep its stored value when an entry is edited, even if that value would no longer match the current source filter, so previously-linked entries are not silently cleared.
In the designer, the Data Source section offers Entity Source (one or more
entities, added with Add source, each optionally narrowed by a saved query in
Entries source) and List Source (Choose List Item). In the query builder
the pointers above are offered as @me, @myGroups, @myRoles and @myOrgUnit.
User pointers
Section titled “User pointers”Because the user field references the USER entity, it also exposes relative pointers that resolve dynamically against the current user rather than a fixed list:
- Me (
@me): Resolves to the currently signed-in user. - MyGroupsUsers (
@myGroupsUsers): Resolves to the users who belong to the current user’s groups.
These pointers keep the field dynamic per user and can be used in default values and filter conditions.
Application Reference
Section titled “Application Reference”When the field value is displayed, the platform resolves and attaches extra information about the referenced object, including its top-level parent (the owning application), its display name, and whether the target is an application or a service. This lets views show a meaningful title and link for the selected object.
Category: user-managed options Since 1.10
Section titled “Category: user-managed options Since 1.10”Normally only a developer edits a Category field’s option list, from the field settings above. Two settings let end users add or rename options themselves from an entry’s create or edit card, without touching the field settings. Both must be on:
| Setting | Where you set it | Effect |
|---|---|---|
Allow users to manage options (options.allowUsersToManageOptions) | The Category field’s settings | Required for any change an end user makes to the options. Only allowed on a Category field whose options are not mapped from another field; saving it on a mapped field is refused (INVALID_USER_OPTION_PERMISSIONS). |
Add category options / Edit category options (allowAddCategoryOptions / allowEditCategoryOptions) | The view’s card settings, per operation (create card, edit card), in editConfiguration.supportedOperations[] | Whether end users may add or edit options in that view’s card. Link create and edit card settings keeps the two operations in step. |
When a user saves an entry with option changes, the client sends them in the entry body (create, update and batch create) as categoryOptionChanges: an object keyed by the field’s full normalized name (a block’s inner fields as block.field), each value shaped {baseOptionIds?, create?: [{id, label, color?}], update?: [{id, label, color?, base: {label, color?}}]}. Labels are per-language strings, the default colour is #81C784, and the client chooses the new option ids.
The server checks every field before the entry is written. Through a view, the view must belong to this entity, its card must allow the operation, and the field must allow user management and be editable in that view; without a view, the caller must be able to edit the entity. An entity another user has locked, or one installed from a package, is refused. The options are then added to the entity definition with guarded updates and one DataEntityUpdatedEvent is published.
| Error | When |
|---|---|
403 CATEGORY_OPTION_CHANGE_NOT_ALLOWED | The field, the view’s card or the caller does not allow this change. |
400 INVALID_CATEGORY_OPTION_CHANGE | An unknown field, an empty label, or another malformed change. |
409 CATEGORY_OPTION_CONFLICT | Someone else changed or deleted the option meanwhile (update.base is the optimistic-concurrency token). |
409 CATEGORY_OPTIONS_CHANGED | baseOptionIds no longer matches the stored option set. |
Category: multiple values Since 1.10
Section titled “Category: multiple values Since 1.10”A Category field can hold several options in one entry. Turn on Multiple in the field’s value settings (the platform-wide options.multiValue flag); you can also set an optional minimum and maximum number of selections. Entry editors then show the picks as removable chips, and table cells show every value. The mobile app supports the same behaviour.
- Stored shape. A single Category field stores
{id}; a multi-value one stores an array[{id}, …]in selection order (a repeatable multi-value category is an array of arrays). The default value follows the same shape: a multi-value default is an array of{id}whose ids exist among the field’s options and respect the minimum and maximum. - Counting rules. Every selected
idmust be one of the field’s options. The minimum (multiValue.min.value) and maximum (multiValue.max.value) are enforced for Category fields: an empty selection never breaks the minimum, because emptiness is what Required decides (so a minimum of 1 does not silently make the field required); a missing minimum means 0, and a missing maximum, or one of 0 or less, means unlimited. - Turning Multiple on is a breaking change. The entity’s version is bumped and existing entries become obsolete until upgraded; the automatic repair wraps each stored single value into a one-item array. Until an entry is upgraded, saving it for any other reason still succeeds, because every save wraps a leftover single value. See Versioning and breaking changes.
- Turning Multiple off keeps only the first value picked and drops the rest; an empty selection becomes empty (
null). - The switch is refused while the field is relied on. If a view or statistic query of the same entity uses the field for a Kanban board, a grouping, a sort, a dashboard or a timeline, the save fails with
400 CATEGORY_FIELD_MULTI_VALUE_IN_USE, anddetails.usageslists each one ({type, id, name}) so you can remove those usages first. Views on a related entity that reach the field through a relation are not checked. - Where a multi-value category cannot be used. Anything that assumes one value per entry refuses it with
400 MULTI_VALUE_CATEGORY_FIELD_NOT_ALLOWED(details.usage): the entity’s Main Category or Subcategory, a Kanban column field, a default sort, a dashboard group-by and the timeline attribute mapping. It is also left out of a view’s grouping choices. - Exports and filters. Template exports print a multi-value category as its labels joined per language, and the
In/NotInfilter operators accept a single category value as well as a list.
Category: option display roles
Section titled “Category: option display roles”Each option added to a Category field can be assigned a display role, so it is shown as a category, a sub-category, or a title when entries are rendered. The options of a Category field are backed by an internal category collection maintained per entity. When a Category field is mapped from another field, its available options update automatically whenever that source field changes.
Mapped field update modes
Section titled “Mapped field update modes”The designer’s Update Mode list maps onto mapping.updateMode:
| Designer label | Value | Behaviour |
|---|---|---|
| Local Update | Local = 0 | Filled from the source automatically and editable; edits stay on this entry and are not written back. The designer’s default. |
| Never | Never = 1 | Filled from the source the first time only; later changes to the source are not copied. The field must be locked (the server rejects the definition otherwise). |
| From Parent Only | ParentOnly = 2 | Follows the source: when the source entry’s value changes, the change is copied to this field. The field must be locked. |
| 2 way | TwoWay = 3 | Editable in both places; a change on either side is written to the other. The mapped field’s Required setting must match the source field’s. |
Rules the server enforces when the entity is saved: a Never or ParentOnly
mapped field must be locked; a TwoWay mapped field’s required setting must equal
the source field’s; and when the mapped field sits in a repeatable block but its
reference field does not, only Never and ParentOnly are allowed. Only
ParentOnly and TwoWay fields receive changes from the source entry after it is
updated.
Sequence: auto-increment configuration
Section titled “Sequence: auto-increment configuration”The designer’s Auto increment settings map onto autoIncrementOptions:
Starting value = startAt, Increment by = incrementBy, Conditional
Sequencing = conditionalIncrement, and each Key / Value pair (added with
Add Key) is an entry of keys with keyName and an expression value
(calculationMethod 2). Once the counter has been used, the keys are read-only.
Beyond the starting value (startAt) and the increment amount (incrementBy), the auto-increment configuration (autoIncrementOptions) supports two advanced behaviors:
- Keyed increment (
keys): Scopes the counter to a combination of key fields, so a separate running sequence is kept for each distinct key combination instead of a single global counter. For example, an invoice number can count independently per branch or per year rather than sharing one sequence across all entries. - Conditional increment (
conditionalIncrement): Advances the sequence only when a defined condition is met, so entries that do not satisfy the condition do not consume a number.
For an end-to-end worked example that combines both behaviors, see the formatted-reference steps below.
The worked “formatted reference” example below is the integrator view of the builder recipe in Sequence.
Step 1 — a year-keyed sequence
Section titled “Step 1 — a year-keyed sequence”Configure the sequence field’s auto-increment options (autoIncrementOptions) with conditional increment enabled and a single key whose expression resolves to the year:
{ "autoIncrementOptions": { "enabled": true, "key": "lc-reference", "startAt": 1, "incrementBy": 1, "conditionalIncrement": true, "keys": [ { "keyName": "year", "calculationMethod": 2, "value": "new Date().getFullYear()" } ] }}calculationMethod selects where the key’s value comes from:
calculationMethod | Source |
|---|---|
0 | Fixed value |
1 | Field |
2 | Expression (default) |
3 | Pointer |
There is no separate condition language: with calculationMethod: 2, the key’s value holds ordinary JavaScript evaluated against the entry, with value bound to the entry’s values and helper functions such as now() and today() in scope.
How the key behaves at runtime:
- The key’s result becomes part of the counter lookup: the next number is drawn with an atomic upsert matched on the counter plus each key’s value, so every distinct year keeps its own running count, starting at
startAtand advancing byincrementBy. When the first entry of a new year is created, that year’s counter row does not exist yet and starts fresh atstartAt— the yearly reset requires no maintenance step. - With
conditionalIncrementenabled, the platform forces the field’s uniqueness off (without it, an auto-increment field is forcedunique: true). Duplicate numbers within a year are prevented by the counter’s atomic update, not by the uniqueness flag. - When the entity definition is saved,
startAt,incrementBy, andkeysare copied onto the platform’s counter document, which is the runtime source of truth; editingkeysafterwards only propagates to the counter while it is still unused. Decide the key structure before real entries exist.
Step 2 — the locked companion field
Section titled “Step 2 — the locked companion field”Add a second, locked field — for example a text field with the normalized name ref — to carry the formatted value, and give it a calculated value. The example assumes the sequence field’s normalized name is seq:
{ "calculatedValueOptions": { "expression": "value.ref ? value.ref : (value.seq ? 'LC-' + new Date().getFullYear() + '-' + String(value.seq).padStart(4, '0') : null)", "calculationTriggers": [{ "type": 1 }], "executionScope": 2 }}Two configuration points are load-bearing:
- The lock is required for the calculation to apply. The server writes a calculated result onto the entry only when the field is locked (or hidden); an unlocked field keeps whatever was submitted. The platform treats the pairing as intended: any field that has
calculatedValueOptionsis automatically reported to forms as locked. executionScopemust be set. When it is absent, the server never recalculates the field on save, and the reference would never be composed. Use1or2so the recalculation reaches entries that already exist.
calculationTriggers[].type | Trigger |
|---|---|
0 | On form opened (form-context only: for locked fields the server keeps the submitted value) |
1 | On save |
2 | On entry changed |
3 | On fields changed (watches triggerOptions.watchedFields) |
executionScope | Recalculates on |
|---|---|
0 | Create only (new entries) |
1 | Update only (existing entries) |
2 | Create and update (all entries) |
| unset | Never recalculated server-side |
The idempotent guard
Section titled “The idempotent guard”The leading value.ref ? value.ref : … is what makes the expression safe to re-run. The on-save trigger fires on every later save of the entry; without the guard, each save would recompose the reference, and a save made after the year boundary would rebuild it with the new year — silently turning an issued LC-2026-0042 into LC-2027-0042. With the guard, the first composed value is frozen: every later recalculation finds value.ref already set and returns it unchanged, so the reference cannot drift.
The inner value.seq ? … : null guard matters just as much, because of the timing described next: on create, the expression evaluates while the sequence field is still empty. Without this check, the expression would compose LC-2026-undefined — and the outer guard would then freeze that broken value permanently. Returning null instead makes the calculation count as failed, and the platform then leaves the field unset on create (and keeps the old value on update) — exactly what the recipe needs. The reference materializes on the first later save, once the sequence number exists.
Both expressions in this recipe — the counter key and the companion’s calculation — are plain JavaScript evaluated against the entry, so if the composed year must always match the counter’s year, derive both from the same date field on the entry rather than from the current date.
Timing: the sequence number is assigned after validation
Section titled “Timing: the sequence number is assigned after validation”This ordering is platform behavior, and it shapes the whole recipe. When an entry is created, the platform validates it first — and server-side evaluation of calculated fields happens inside that validation — then draws the sequence number and writes it onto the entry, and only then stores the entry. A calculated expression evaluated during the create request therefore always sees the sequence field as undefined; do not expect the formatted reference in the create response. Creation is also the only moment a sequence number is assigned — updates never (re)assign it — so on any later save the number is present and a save-triggered recalculation can read it.
A counter failure during creation is logged but does not abort the save: the entry is created with an empty sequence field. The null branch of the guard keeps the companion field empty in that case too, rather than freezing a malformed reference.
Entries created through the API
Section titled “Entries created through the API”The sequence number itself needs no client: it is assigned server-side on every create, whichever channel created the entry. The formatted reference is different. Because the number is drawn after calculated fields are evaluated, no channel — form or API — can compose the reference inside the create request itself, so an API-created entry starts with an empty ref. It receives its value in one of three ways:
- A later save whose trigger and
executionScopematch (as configured above): the server recomposes the field itself, with no client involvement. This is the recommended route — issue a follow-up save after creating the entry, or let the next natural update do it. - The caller passes the pre-formatted value. For a locked field, the server only reliably keeps a submitted value when the field’s trigger is on-form-opened (
type: 0) — the one form-context-only case, where the server computes nothing and trusts the value the form (or the API caller) submitted — or when the field is unlocked through a system button’s overridable locked fields. Under other trigger configurations, the server-side calculation supersedes the submitted value. - An out-of-band backfill that writes the reference directly.
Locked and never required
Section titled “Locked and never required”A sequence field is always locked: the platform requires every auto-increment field
to be locked and rejects the field definition otherwise (see
Locked fields on the server). With conditionalIncrement off, an
auto-increment field is forced unique: true.
Since 1.10 A sequence field can never be required: the platform refuses a
“required” verdict on an auto-increment field from every source that could produce
one — the field’s own Required toggle, the view’s own required-fields list, and a
workflow step that marks the field’s enclosing Block mandatory. The sequence number
is assigned by the platform only after the entry passes validation, and the field
is never shown on the entry form, so nothing a caller does could satisfy a
“required” check on it.
Block: required sub-fields in a hidden block Since 1.10
Section titled “Block: required sub-fields in a hidden block Since 1.10”A Required sub-field nested inside a Block is suspended whenever the Block itself is hidden — whether the Block was hidden by its own hide-field condition or by a workflow step that hides it. This applies at any nesting depth inside the Block, and for a repeatable Block it is resolved separately for each repetition: one repeated instance of the Block can be hidden (for example, an expression that only hides the first row) while another repetition stays visible and enforces its own required sub-fields normally.
Block: decrypting a field inside a repeatable block Since 1.10
Section titled “Block: decrypting a field inside a repeatable block Since 1.10”An Encrypted field (see Encrypted fields) nested inside a repeatable Block has one stored value per repetition, so revealing it now takes a row selector: the decrypt action addresses one specific repetition rather than the field as a whole. Decrypting such a field without specifying which repetition, or specifying one that does not exist, is refused. The decrypt mechanism itself — the encrypt-at-rest model, access grants, and the decrypt action in general — is documented on Sensitive Fields; this note covers only the repeatable-block-specific behavior.
Block: stable row ids Since 1.10
Section titled “Block: stable row ids Since 1.10”Each row of a repeatable Block now carries a reserved key, __id (a uuid), so the server can tell rows apart across an update. Before this change, per-row state (locked values, sensitive values, the entry history diff) was carried across an update by position, so deleting or reordering a row could hand one row’s locked or hidden values to its neighbour.
What this means when you design or integrate:
- It is not a field.
__idnever appears in the entity’s field definitions, so exports, indexing, table views and filter pickers do not see it. The__prefix is reserved: no field you define can start with it. - Echo the ids you receive. A row whose
__idmatches a stored row is treated as the same row; a row with an unknown id is a new row; stored rows that no submitted row claims are removed. The web and mobile clients do this for you. - Clients that send no ids at all still work. If a submitted array carries no
__idon any row, every row is matched to the stored row at the same position, as before. If some rows carry ids and others do not, the id-less ones are treated as new rows and never take over a stored row’s values. A save through a view is stricter: see the next section. - Stored rows get their ids on upgrade (
Since 1.10, from release 1.10.1). Migration1.10.0-a52(stamp-repeatable-block-row-ids) gives every stored row of every top-level repeatable Block, in every space, an__id. Ids already present are kept, the write records no history, and re-running it changes nothing. Before it, a stored row without an id was given a fresh one each time the web form opened it, so a save could never pair that row with storage. - The server owns the id. A well-formed uuid you send is kept; the server mints one for a row with no id, a malformed id, or a repeat of an earlier id. Two rows with the same id in one submitted array are rejected, and
__idcannot be changed through a patch. - Related behaviour. Entry upgrade transformations after a breaking change now apply to every row of a repeatable Block, the entry history compares rows by id, and the block-item reaction actions (create / update block item) match rows by id as well. Expressions in field rules inside a repeatable Block run per row (
scope.index).
Block: saving rows through a view
Section titled “Block: saving rows through a view”A view’s edit operation lists the field paths the user may write. A repeatable Block’s rows arrive as one array that replaces the stored array, so without a repair every column the view does not grant would vanish from every row on save. The server repairs it: for each repeatable Block it pairs the submitted rows with the stored rows and copies the stored values of every path the view does not let the user edit into the matching row. Those values always come from storage, never from the payload.
- Keeping the ungranted columns is
Since 1.4: it shipped in the 1.4, 1.6 and 1.8 patch releases (1.4.119, 1.6.69, 1.8.28) and in 1.10.1. On the 1.4, 1.6 and 1.8 lines rows carry no ids, so a submitted row is paired with a stored row by its unchanged granted values (same position, or any position when the save removed rows). Those lines also keep the empty rows of a block the save did not change. - Pairing by row id is
Since 1.10, from release 1.10.1 (not in 1.10.0): on the 1.10 line and later the pairing uses__idonly.
What an API client writing through a view needs to know (1.10.1 and later):
- Send each existing row back with its
__id. Ungranted columns are restored only for a row whose submitted__idmatches a stored row. A pair made by position alone gets nothing restored. Reordering rows, or deleting rows above one, is safe as long as the ids travel with the rows. - A row without an id beside rows that carry ids is a new row. It gets nothing restored, so its ungranted columns are empty, and the server mints its id. A row added in a deleted row’s place therefore cannot inherit that row’s locked values.
- An array with no ids at all is still paired by position for the locked-value check, so older integrations keep working, but a view save restores nothing for those rows. Send the ids.
- An id the server does not know is a new row. On a view save the id you chose is not kept:
__idis not in any view’s field list, so the view filter drops it and the server mints one. (On a create or full update outside a view, a well-formed unique uuid you send is kept.) - Rows you leave out are removed. A view can remove rows only when it grants at least one field inside the Block; a view that grants no field of the Block never touches the stored Block.
- Duplicate ids in one array are refused with
400 ENTRY_VALIDATION_ERROR(reasonduplicate __id in <field>: <ids>), and no patch operation may address__id.
How a nested Block inside a repeatable Block is handled has not been verified: the server normalizes and stamps top-level repeatable Blocks only.
Version notes
Section titled “Version notes”Past behaviour that changed, kept here so the guides can describe only current behaviour:
- Percentage precision on calculated values (1.8). Previously only typed values
respected a percentage field’s precision, because rounding happened as the user
entered the number. A calculated result went straight to display with its full
floating-point precision, so a field configured for 0 or 1 decimal places could
render something like
33.333333333333336%. Both percentage display styles are covered — the plain percentage label and the Progress Bar with Percentage label; the progress bar’s own fill is unaffected. - Required sub-fields inside a hidden block (1.10). Before this fix, a required sub-field inside a hidden Block could still block save with a “Field is required!” error, even though the user was never shown the field and had no way to fill it in.
- Sequence fields and Required (1.10). Before this fix a sequence field marked required (through its toggle, a view’s required-fields list, or a workflow step making its Block mandatory) blocked every create with a “Field is required!” error.
- Decrypted Map fields (1.10). A revealed Map field — the address input plus the interactive selector — used to render squeezed to roughly half width, the narrow layout meant for a masked or locked value’s short placeholder text; it now renders at its normal full width. A masked or locked Map still uses the narrow layout.
- Repeatable value popover. The popover the entry-details / table / card views use to show a repeatable field’s full value list was fixed at a set height regardless of how few values it actually held, so a field with only one or two entries still opened a mostly-empty box. It now sizes to its content, up to the same cap. Display-only; the stored value shape is unchanged.
- Mapped fields and Encrypt. The designer does not show the Encrypt toggle on a mapped field (earlier documentation said it did): the flag is mirrored from the source field.
Platform 1.10.0 · Backend 1.11.0-alpha.11 · Frontend 1.11.0-alpha.6 · Mobile 1.10.2 · Chart 1.11.8 · Gateway 2.6.11 · MCP 0.2.0 · Grafana DS 1.2.0Docs build 2026-11-27