Block configuration
A "block" is one single item of a whole form. It can be just a headline, a paragraph or a form component like textfields and dropdowns.
Every block is represented by an object.
General attributes
type
type defines what type of block the current object describes.
conditions
validations are an array of condition-objects. They can relate to other values of the form. If the condition is fulfilled, the block will be visible.
Attributes for input fields
name
name of the field.
| Type | Required |
|---|---|
| string | yes |
label
field label.
| Type | Required |
|---|---|
| string | yes |
helpText
optional, descriptive text to help the user. If given, it will be displayed beyond the field.
| Type | Required | Default |
|---|---|---|
| string | no | - |
required
Is the field required? This property is used for validation and to add a indicator to the label.
| Type | Required | Default |
|---|---|---|
| boolean | no | false |
validations
validations are an array of validation functions.