Skip to content

Text Field

A single-line input — the default choice for anything short: a heading, a name, a link.

Settings:

SettingWhat it does
PrefixFixed text glued to the left of the input
SuffixThe same on the right
PlaceholderGrey hint inside an empty input
WidthShare of the row, in percent
DefaultWhat a new record starts with
RequiredAn empty value blocks saving

Prefix and suffix exist so units do not end up inside the value: kg, m2, a currency sign. They are drawn beside the input and are not part of what gets saved.

Output:

html
<h1>{$title}</h1>

The component treats this field as prose

Text is one of the four types offered to the translators, and the moderation queue builds a row's title from it. For an article number or a code that is the wrong bargain — a machine translation may rewrite it.

© PageBlocks 2019-present