Text 

The Text type generates a simple input field, possibly with additional features applied.

Settings 

Name Type Default Required
string
integer
integer
string
boolean false
boolean true
integer
array
boolean
boolean false
string
object
object
object
string
string
boolean false
boolean false

default

default
Type
string

Default value set if a new record is created.

max

max
Type
integer

Value for the maxlength attribute of the <input> field. Javascript prevents adding more than the given number of characters.

min

min
Type
integer

Value for the minlength attribute of the <input> field. Javascript prevents adding less than the given number of characters. Note: Empty values are still allowed. Use in combination with required if this should be a non-empty value.

placeholder

placeholder
Type
string

Placeholder text for the field. Can also be used as automatic language key in labels.xlf. See here for more information.

required

required
Type
boolean
Default
false

If set, the field becomes mandatory.

searchable

searchable
Type
boolean
Default
true

If set to false, the field will not be considered in backend search.

size

size
Type
integer

Abstract value for the width of the <input> field.

valuePicker

valuePicker
Type
array

Renders a select box with static values next to the input field. When a value is selected in the box, the value is transferred to the field. Keys:

items (array)
An array with selectable items. Each item is an array with the first being the label in the select drop-down (LLL reference possible) and the second being the value transferred to the input field.

Example:

valuePicker:
  items:
    - label: 'Job offer general'
      value: 'Want to join our team? Take the initiative!'
    - label: 'Job offer specific'
      value: 'We are looking for ...'
Copied!

autocomplete

autocomplete
Type
boolean

Enables or disables browser autocomplete for the field.

behaviour.allowLanguageSynchronization

behaviour.allowLanguageSynchronization
Type
boolean
Default
false

Allows to select if localization uses custom or default language value.

eval

eval
Type
string

Configuration of field evaluation. For example trim to strip whitespace from the value before saving.

fieldControl

fieldControl
Type
object

fieldInformation

fieldInformation
Type
object

fieldWizard

fieldWizard
Type
object

is_in

is_in
Type
string

Evaluates whether the entered text contains only characters from this string.

mode

mode
Type
string

When set to useOrOverridePlaceholder, a checkbox appears above the field allowing the user to override the placeholder value.

nullable

nullable
Type
boolean
Default
false

Allows the database field to store a NULL value.

readOnly

readOnly
Type
boolean
Default
false

Renders the field in a way that the user can see the value but cannot edit it.

Examples 

Minimal 

name: example/text
fields:
  - identifier: text
    type: Text
Copied!

Advanced / use case 

name: example/text
fields:
  - identifier: text
    type: Text
    default: 'Default value'
    min: 4
    max: 15
    required: true
Copied!