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

Field textarea

Version: Free.

Why this type

Several lines with no accidental HTML markup. Better than text for descriptions and quotes. Simpler than richtext when formatting is optional.

When to use

  • Lead paragraph or short blurb without lists
  • FAQ answer when HTML is not required
  • Editor note or internal comment

Tips

Long formatted copy belongs in richtext or editorjs. Pro: responsive behaves like text.

Similar types

Schema

json
{
  "name": "intro",
  "type": "textarea",
  "label": "Intro text",
  "rows": 6,
  "tab": "Content",
  "width": 100,
  "active": true
}

Value

Multi-line string.

Section data

Key intro in the section data:

json
{
  "intro": "First paragraph.\nSecond paragraph."
}

Chunk example

fenom
{if $intro}
  <p class="intro">{$intro|escape|nl2br}</p>
{/if}

Notes

Height: rows or height in schema. Pro: responsive.

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