Text Input
Basic text input.
js
{
input: {
type: 'text',
pattern: '.+@.+',
patternDescription: 'Bitte eine gültige E-Mail-Adresse eingeben.',
}
}Input Options
| Option | Values | Default | Description |
|---|---|---|---|
required | boolean | false | Whether filling the field is mandatory. |
minLength | number | - | Minimum length for the content to be valid. |
maxLength | number | - | Maximum length for the content. |
pattern | string | - | A regular expression pattern to match agains input value. |
patternDescription | string | - | Human readable description of the pattern. |
suggestions | string[] | - | Suggested values for the field. |
Conditions
The text input type supports the following conditions for dynamic visibility:
| Condition | Payload | Description |
|---|---|---|
isEmpty | booleandefaults to true | Checks whether the input is empty or not. |
equals | string | Checks whether the input value equals the payload string. |
matches | RegExp | Checks whether the input value matches the payload regular expression. |