Field Types

Field Types

ElmapiCMS ships with a rich set of field types so you can model almost any kind of content. Below is a quick-look reference with the purpose of each type and common configuration options.

Field TypePurpose
TextSingle-line text such as headings or titles
Long TextMulti-line plain text like descriptions
Rich TextFormatted content using the integrated Lexical editor
SlugURL-friendly string generated from another field
E-mailStores an email address with validation
PasswordSecure password field (hashed in storage)
NumberIntegers, decimals, or floats (min / max supported)
EnumerationA fixed list of selectable values
BooleanTrue / false toggle rendered as a switch
ColorColour picker (HEX / OKLCH) with opacity support
DateCalendar date (with timepicker and range options)
TimeTime-only picker
MediaAttach files from the Asset Library (images, docs, video)
RelationReference entries in another collection (one-to-one / one-to-many)
JSONStore structured JSON data with optional schema validation
Field GroupResusable sets of nested fields

Field TypesField Types

Validation & Display Options

ElmapiCMS lets you configure powerful validation logic and fine-tune how each field behaves in the editor and API.

Common validation rules

RuleWhat it doesNotes
RequiredPrevents saving content when the field is empty.For repeatable fields every item must have a value.
UniqueEnsures the value does not already exist in another entry of the same collection.Disabled automatically when a field is marked repeatable and unavailable for non-scalar types (Boolean, Enumeration, Media, etc.).
Min / Max / BetweenLimits the number of characters (text) or the numeric range (number).Pick Between, Min or Max and enter values.
Type checksEmail, Number & Color fields include built-in format validation.No extra toggle – they are always applied.

Extra validation by field type

FieldExtra ruleHow it works
EnumerationIn listSelected value(s) must exist in the option list you define.
SlugURL safe & UniqueAuto-generates from a source field and runs unique validation if enabled.
Date / TimeValid dateBackend rejects malformed dates / ranges.
RelationExistsReferenced entry must exist (and, if Include Draft is off, be published).
MediaExistsAsset ID(s) must be present in the Asset Library.

Custom messages – Each rule lets you supply a custom error message shown in both the CMS UI and API response.


Display & behaviour options

The Other Options panel in the Field Builder controls how a field appears in the editor, the content list and the public API.

OptionSupported fieldsWhat it affects
Repeatable FieldMost scalar fields (Text, Long Text, Number, Date, Time, Color, Slug, Email, Password)Allows authors to add multiple values (⨁ / 🗑️ controls appear). Disables the Unique rule.
Hide in content listAllRemoves the column from the collection’s table view to declutter the UI.
Hidden in APIAllOmits the field from the REST payloads – useful for internal notes or secrets.

Field-specific UI settings

FieldKey options
EnumerationList – the allowed values
Allow multiple – switches the single select to a multi-select.
DateInclude time picker – toggles HH:mm control.
Allow range select – lets editors pick start → end dates.
MediaSingle File / Multiple Files radio – controls whether the field stores one or many asset IDs.
RelationRelation collection – pick the target collection.
One-to-One / One-to-Many radio.
Include Draft – whether unpublished entries can be linked.
SlugSource field – choose which field to slugify.
Readonly – lock the input to prevent manual edits.
ColorStandard colour picker with opacity slider out of the box.
Rich TextUses Lexical editor with a rich toolbar and inserting media.

Search documentation

Find guides and reference pages