Skip to content
Strife Docs

Reference Field Reference

fields.multiInput()

A repeatable list of same-typed primitive values (text, number, email, date, etc).

A repeatable list of same-typed primitive values. Maps to editor { name: 'str-multi-input', type: 'multi-input' }. The inputType (default 'text') controls both the UI input and the output element type.

Example

TypeScript
fields.multiInput({
  label: 'Email addresses',
  inputType: 'email',
  sort: true,
})

Options

OptionTypeRequiredDescription
label
string
Yes
Label shown to editors in Strife Studio.
description
string
No
Not shown in Studio's editor panel.
searchable
boolean
No
Stored on the template; nothing uses it today.
filterable
boolean
No
Stored on the template; nothing uses it today.
protected
boolean
No
Stops the field from being edited or removed in Studio's template designer. No effect in the editor panel.
propertyName
string
No
Override the stored property name.
inputType
'text' | 'number' | 'email' | 'url' | 'tel' | 'datetime-local' | 'date' | 'time' | 'month'
No
The repeated input's type. Default 'text'.
sort
boolean
No
Auto-sort entries as they're entered.

No localizable option.

Output type

number[] when inputType: 'number'; string[] for every other input type (dates are stored as strings).

See also

  • Multi Input — the same editor, documented from the Strife Studio UI side.
  • fields.repeatable() — a similar repeatable-primitive shape with a narrower type set (including link) and a different editor.