Skip to content
Strife Docs

Reference Fields

Text

The Text field type is one of the most commonly used fields. It saves a string to the database and provides the Edit view with a simple text input.

Strife Studio screenshot of a Text 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
Placeholder
A brief hint or instruction displayed in an input field to guide users on the expected content or format.
Spellcheck
Enables or disables automatic spell checking in the browser

Define with JSON

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

  • Component Name: str-input
  • Type: text
  • Reference ID: str-input|text

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

JSON
{
  ...
  "editor": {
    "name": "str-input",
    "type": "text",
    "propertyName": "...",
    ...
    "attributes": {
      "spellcheck": true,
      "placeholder": "..."      
    }
  },
  ...
}

Live preview

The compatible Strife Web Components for a Text field are any of the text or container components.

Note:

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