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

Field email ​

Version: Free.

Why this type ​

A field for an email address, not a generic text. The saved value is a string.

When to use ​

  • Email on a contact card
  • A recipient that is not a FetchIt form field
  • Showing an email inside a section

Schema ​

json
{
  "name": "email",
  "type": "email",
  "label": "Email"
}

Section data ​

json
{
  "email": "editor@example.com"
}

Chunk example ​

modx
<a href="mailto:[[+email]]">[[+email]]</a>
fenom
<a href="mailto:{$email|escape:'url'}">{$email|escape}</a>

Similar types ​

  • text for a free string
  • url for a link