Skip to content
  1. Extras
  2. PageBuilder
  3. Field types
  4. Free
  5. text

Field text

Version: Free.

Why this type

  • One string in the section data, predictable in Fenom and validation
  • Pro supports responsive for desktop, tablet, and mobile
  • Title or label without a full WYSIWYG editor

When to use

  • Section title, subtitle, or button label
  • Short alt or caption next to an image
  • Any value that fits on one line

Tips

Similar types

  • textarea for paragraphs without markup
  • slug for URLs derived from another field

Schema

json
{
  "name": "title",
  "type": "text",
  "label": "Title",
  "tab": "Content",
  "width": 100,
  "description": "Hint under the field",
  "default": "",
  "required": true,
  "active": true
}

Value

String. In the example below the key is title.

Section data

Key title in the section data:

json
{
  "title": "Section title"
}

Chunk example

fenom
{$title|escape}

Notes

Pro: field.responsive (desktop / tablet / mobile).

Common properties

For fields with name that are stored in the section data:

KeyTypeRoleCMP
tabstringGroup subtitle in the inspectoryes
width25–100Field width as % of the row (flex)yes
descriptionstringHint under the labelyes
defaultanyInitial value for a new sectionyes
activeboolfalse hides the field in the inspectoryes
requiredboolRequired on publish (draft still saves)yes

Pro (capability responsive): with responsive: true, the section data uses desktop, tablet, mobile keys instead of a scalar.

See fields overview.

See also