A standard, single-line input field

The text field creates a standard text input


    label: Name
    type: text


Option Type Required Default Description
after mixed Optional text that will be shown after the input
autofocus bool Sets the focus on this field when the form loads. Only the first field with this label gets
before mixed Optional text that will be shown before the input
converter mixed The field value will be converted with the selected converter before the value gets saved. Available converters: lower, upper, ucfirst, slug
counter bool true Shows or hides the character counter in the top right corner
default mixed Default value for the field, which will be used when a Page/File/User is created
disabled bool If true, the field is no longer editable and will not be saved
help mixed Optional help text below the field
icon string Optional icon that will be shown at the end of the field
label mixed The field label can be set as string or associative array with translations
maxlength int Maximum number of allowed characters
minlength int Minimum number of required characters
pattern string A regular expression, which will be used to validate the input
placeholder mixed Optional placeholder value that will be shown when the field is empty
required bool If true, the field has to be filled in correctly to be saved.
spellcheck bool false If false, spellcheck will be switched off
translate bool true If false, the field will be disabled in non-default languages and cannot be translated. This is only relevant in multi-language setups.
width string 1/1 The width of the field in the field grid. Available widths: 1/1, 1/2, 1/3, 1/4, 2/3, 3/4

Max and min length

You can control the max and/or min length of the entered text by using the validate option. By adding the validators, a handy indicator of the current text length will be displayed in the upper right corner.

    label: Name
    type: text
    minlength: 10
    maxlength: 1000