cardinal

Naming

How Cardinal picks the name of a new Record.

Every Record has a name, its primary key and the last part of its URL. The RecType's autoname decides how a new Record gets it.

autonameExample nameHow
INV-.YYYY.-.####INV-2026-0001A series. Date parts use the site's time zone, and the counter is kept per prefix
naming_series:SO-2026-00042The series the Record's naming_series field holds
field:customer_nameAcme LtdThe value of that field
format:{customer}-{####}Acme-0007A pattern of fields and a counter
promptwhatever the user typesThe user enters the name
autoincrement42The next value of a database sequence
UUID0193…A version 7 UUID
hash, or nonea1b2c3d4e5Ten random characters
rectypes/invoice.yaml
name: Invoice
autoname: INV-.YYYY.-.####

Series in the desk

Record Naming Settings (/desk/record-naming-settings) works on any app RecType with a naming_series field.

Pick the RecType. Its series appear one per line, such as INV-.YYYY.-.####. The first line is the default.

Type a series in Try a Series to see the next three names it gives.

To restart a counter, enter the series or its prefix (INV-2026-) in Prefix, set Current Value and click Update Series Number. A lower value can produce a name that already exists.

Record Naming Rules

A Record Naming Rule names Records of one RecType that match a condition. Rules with a higher Priority are tried first.

FieldExample
RecTypeIssue
Conditiondoc.priority == "Urgent"
PrefixURG-.YYYY.-
Digits5

An urgent Issue saved in 2026 gets URG-2026-00001. An empty condition names every Record.

Amendments and renames

An amendment of SO-0001 is named SO-0001-1 unless Record Naming Settings says otherwise. See Record lifecycle.

A RecType with allow_rename lets users rename a Record from the form menu. Renaming to a name that exists fails unless you choose to merge into it.

On this page