Skip to content

Use a Sequence Field to number records automatically: 1000, 1001, 1002… for employees, or a running number per year for requests. The platform assigns the number when a record is created; nobody types it and nobody can change it. With a second field you can turn the number into a formatted reference such as LC-2026-0001 that restarts every year. This page covers what is special about sequence fields. The settings every field has are on Settings every field shares.

  1. On the entity’s Structure tab, drag Sequence Field from the Fields list onto the canvas.
  2. Type the field’s name on its row, then select the settings icon to open Field Settings.
  3. Under Auto increment settings, enter the Starting value (the first number) and Increment by (how much each new number adds).
  4. Select Save.

Example. An Employee entity has an Employee number sequence starting at 1000 and incrementing by 1. The first employee gets 1000, the next 1001, and so on.

By default there is one counter for the whole entity. Conditional Sequencing keeps a separate counter for each value of one or more keys — one counter per year, per branch, or per branch and year.

  1. Under Auto increment settings, turn on Conditional Sequencing.
  2. Select Add Key.
  3. In Key, give the key a name, such as year or branch.
  4. In Value, write the expression that gives the key’s value for a record — for example new Date().getFullYear() for the current year, or value.branch for the record’s Branch field.
  5. Add more keys if the counter should depend on several values.
  6. Select Save.

Each new combination of key values starts its own counter at the Starting value: the first request of 2027 gets number 1 again, with no maintenance.

Decide the keys before real records exist. Once the counter has been used, the keys can no longer be changed.

Recipe: a yearly reference such as LC-2026-0001

Section titled “Recipe: a yearly reference such as LC-2026-0001”

A reference that combines a prefix, the year and a four-digit number that restarts every year is built from two fields: a sequence that counts per year, and a locked text field that composes the reference.

Step 1 — the yearly counter.

  1. Add a Sequence Field named Number in year, and check that its Normalized name is seq.
  2. Under Auto increment settings, set Starting value to 1 and Increment by to 1.
  3. Turn on Conditional Sequencing, select Add Key, and enter the Key year with the Value new Date().getFullYear().

Step 2 — the reference.

  1. Add a Text field named Reference, and check that its Normalized name is ref.

  2. Under Field Attributes, turn on Lock Field.

  3. Under Default Value, tick Advanced and enter this in Type expression:

    value.ref ? value.ref : (value.seq ? 'LC-' + new Date().getFullYear() + '-' + String(value.seq).padStart(4, '0') : null)
  4. Set Execution Triggers to On save, then Execution Scope to All entries (choose the trigger first — changing it resets the scope).

  5. Select Save.

Result: LC-2026-0001, LC-2026-0002, … and, from the first record of the new year, LC-2027-0001.

How the expression behaves:

  • An issued reference never changes. The first part (value.ref ? value.ref) keeps the reference once it exists, so a record created in 2026 and edited in 2027 keeps LC-2026-….
  • No broken references. The second part leaves the field empty until the number exists, instead of producing LC-2026-undefined.
  • The reference appears on the next save. The platform assigns the sequence number when a record is created, after calculated values are worked out. So a new record’s Reference is empty at first and is filled in the next time the record is saved. This is also true for records created by integrations.

If the year in the reference must always match the counter’s year, take both from the same date on the record (for example a Requested on field) instead of from today’s date.

  • A Sequence Field is always locked, and it is not shown on the record’s form — the number appears once the record is saved.
  • It can never be Required: the platform fills it in, so a required check could never be satisfied. It also has no default value, and it can’t be Repeatable.
  • Numbers are unique automatically. With Conditional Sequencing they are unique within each key value (one 1 per year), which the counter itself guarantees.
  • Under Display › Set Field As, tick Main number to make the number the one that represents the record.

A Sequence Field also offers Hide Field, Sensitive, Encrypt, Searchable and Display on table. Each is described on Settings every field shares.

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