Skip to content
Strife Docs

Reference Fields

Multi Input

The Multi Input field allows users to arbitrarily add one or more values of a predefined type, storing them as an array in the database

Strife Studio screenshot of an Multi Input field

Settings

In addition to the basic settings, this section provides information about unique settings and configurations specific to this field.

Note:

You can find a comprehensive list of all basic settings in the 'Overview' section.

OptionDescription
Type
Specifies the type of value to insert, which can be one of the following: Text, Number, Email, URL, Tel, Date Time, Date, Month, or Time
Auto sort
Determines whether the field should automatically sort the inserted values as they are added

Define with JSON

When defining templates using JSON, this field is represented using:

  • Component Name: str-multi-input
  • Type: multi-input
  • Reference ID: str-multi-input

The settings above map into the editor.attributes object inside the JSON definition.

JSON
{
  ...
  "editor": {
    "name": "str-multi-input",
    "type": "multi-input",
    "propertyName": "...",
    "attributes": {
      "inputType": "...", //text|number|email|url|tel|datetime-local|date|month|time
      "sort": false,         
    }
  },
  ...
}

Live preview

Note:

This field does not have any default Strife Web Components. Custom live preview implementations are fully supported.

Note:

For more information on live preview and Strife Web Components, please refer to the Live preview documentation.