Skip to content

text

Custom field type

All field types

A single line of plain text, stored without markup.

Written as
"Type": "text"
Valid on
Forms, and template fields, Datastore schema, and custom site settings
Stores
{{ text }} — the Liquid object a template reads from this field.
On a form
{{ text_field }} — the control object rendered on a Form. Not the same object as Stores.
Validators
url, same, regex, phone, number, not, maxlength, lte, lt, gte, gt, eq, email, different, decimal, alphanumeric
Default value
A plain string.

Properties

Accepted in addition to the shared properties every definition carries.

Property Required Description
Placeholder Greyed-out hint shown in the empty input.