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 | ||
| integer | |||
| array |
default
-
- Type
- string
Default value set if a new record is created.
max
-
- Type
- integer
Value for the
maxlengthattribute of the<input>field. Javascript prevents adding more than the given number of characters.
min
-
- Type
- integer
Value for the
minlengthattribute of the<input>field. Javascript prevents adding less than the given number of characters. Note: Empty values are still allowed. Use in combination withrequiredif this should be a non-empty value.
placeholder
-
- Type
- string
Placeholder text for the field.
required
-
- Type
- boolean
- Default
- false
If set, the field becomes mandatory.
size
-
- Type
- integer
Abstract value for the width of the
<input>field.
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: - [ 'Want to join our team? Take the initiative!', 'Job offer general' ] - [ 'We are looking for ...', 'Job offer specific' ]Copied!
Examples
Minimal
name: example/text
fields:
- identifier: text
type: Text
Advanced / use case
name: example/text
fields:
- identifier: text
type: Text
default: 'Default value'
min: 4
max: 15
required: true