Type | Description |
text |
A text input field |
textarea |
A textarea input field |
datetime |
A datetime input field |
html |
An HTML field |
file |
A file upload field, the file is uploaded prior to the job start and the extravars will contain the uploaded file info. |
number |
A number input field |
password |
A password masked input field |
checkbox |
A checkbox field |
radio |
A radio field (multi options) |
enum |
A multi-column filterable dropdown box |
expression |
A powerfull javascript driven expression field |
table |
A table input field (insert, modify, delete) |
text formfield
A text input field
Below are the properties that are specifically for a text formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= text) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
keydown boolean added in version 2.2.0 |
Enable responsiveness
Enable instant responsiveness whilst typing.
Default:
false
Only available with types:
text, password |
output | |
asCredential boolean |
Send credential as extravar
Use the value of this field to search for a credential with the same name
Default:
false
Only available with types:
text, password, enum, expression Examples: 1) Search and send the credential named 'vcenter'
|
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
in object added in version 2.2.4 |
A list validation (must be in list)
Enforces a validation where the current field must be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip is in range
|
maxLength number |
Field maximum length Forces a string-field to be maximum x long.
Only available with types:
text, expression, password |
minLength number |
Field minimum length Forces a string-field to be at least x long.
Only available with types:
text, expression, password |
notIn object added in version 2.2.4 |
A list validation (can not be in list)
Enforces a validation where the current field can not be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip exists
|
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime, file Examples: 1) Validate email address
2) Strong password
3) Only pdf files
|
required boolean |
Required field Makes the field required.
Default:
false |
sameAs string |
An field based validation (field must be same as other field) Enables a validation where the value of this field must match the value of another field. Perfect for password entry, for example.
Only available with types:
text, expression, password Examples: 1) Password doublecheck
|
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Text
- type: text
name: username
label: Username
default: ansibleguy
placeholder: type a username
required: true
minLength: 4
maxLength: 10
regex:
expression: "^[a-zA-Z]*$"
description: Must be alpha numeric
icon: user
help: A help message
textarea formfield
A textarea input field
Below are the properties that are specifically for a textarea formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= textarea) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Textarea
- type: textarea
name: comments
label: Comments
default: |
Line 1
Line 2
placeholder: add your comments
required: true
help: A help message
datetime formfield
A datetime input field
Below are the properties that are specifically for a datetime formfield
Attribute | Comments |
---|---|
basic | |
dateType string added in version 4.0.2 |
DateType of the datetime picker The datetime picker can pick several types
Choices:
Only available with types:
datetime |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= datetime) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
in object added in version 2.2.4 |
A list validation (must be in list)
Enforces a validation where the current field must be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip is in range
|
notIn object added in version 2.2.4 |
A list validation (can not be in list)
Enforces a validation where the current field can not be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip exists
|
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime, file Examples: 1) Validate email address
2) Strong password
3) Only pdf files
|
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) DateTime
- type: datetime
dateType: date
name: mydate
label: Date
default: "2023-12-01"
required: true
help: A help message
- type: datetime
dateType: datetime
name: mydateandtime
line: Demo1
label: I will default to now
evalDefault: true
default: "new Date().toISOString().substring(0,19).replace('T',' ')"
required: true
- type: datetime
dateType: datetime
name: mydateandtime
label: DateTime
default: "2023-12-01 13:01:00"
required: true
help: A help message
- type: datetime
dateType: time
name: mytime
label: Time
default: "13:01:00"
required: true
help: A help message
html formfield
An HTML field
Below are the properties that are specifically for a html formfield
Attribute | Comments |
---|---|
basic | |
name string / required / unique |
Field name This attribute represents the name of the form field. |
type string / required |
Field type (= html) |
data | |
expression string |
A javascript expression.
By default this javascript is evaluated on the server side and limited to predefined functions (for security).
However in combination with
Only available with types:
enum, expression, table, html Examples: 1) Get a list of users from a rest api
2) Filter and sort an array of objects
3) Make a numbered list
4) Use the alias `local`
5) Use the alias `local_out`
|
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Alert
- type: html
name: alert
expression: |
'<div class="notification is-danger">
danger mister robinson !
</div>'
- type: html
name: image
expression: |
'<img src="https://dummyimage.com/16:9x1080" />'
- name: header
type: html
expression: |
'<h3 class="title is-3">Your own title</h3>'
file formfield
A file upload field, the file is uploaded prior to the job start and the extravars will contain the uploaded file info.
Below are the properties that are specifically for a file formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= file) |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
maxSize number |
File maximum size Forces a file-fields size to not be higher than…
Only available with types:
file |
minSize number |
File minimum size Forces a file-fields size to not be lower than…
Only available with types:
file |
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime, file Examples: 1) Validate email address
2) Strong password
3) Only pdf files
|
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Software Image Upload
- type: file
name: software_image
label: Upload software image
number formfield
A number input field
Below are the properties that are specifically for a number formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= number) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
maxValue number |
Field maximum value Forces a number-field to not be higher than…
Only available with types:
number |
minValue number |
Field minimum value Forces a number-field to not be lower than…
Only available with types:
number |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Number
- type: number
name: numberfield
label: Number
default: '1'
required: true
minValue: 0
maxValue: 10
help: A help message
password formfield
A password masked input field
Below are the properties that are specifically for a password formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= password) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
keydown boolean added in version 2.2.0 |
Enable responsiveness
Enable instant responsiveness whilst typing.
Default:
false
Only available with types:
text, password |
output | |
asCredential boolean |
Send credential as extravar
Use the value of this field to search for a credential with the same name
Default:
false
Only available with types:
text, password, enum, expression Examples: 1) Search and send the credential named 'vcenter'
|
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
in object added in version 2.2.4 |
A list validation (must be in list)
Enforces a validation where the current field must be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip is in range
|
maxLength number |
Field maximum length Forces a string-field to be maximum x long.
Only available with types:
text, expression, password |
minLength number |
Field minimum length Forces a string-field to be at least x long.
Only available with types:
text, expression, password |
notIn object added in version 2.2.4 |
A list validation (can not be in list)
Enforces a validation where the current field can not be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip exists
|
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime, file Examples: 1) Validate email address
2) Strong password
3) Only pdf files
|
required boolean |
Required field Makes the field required.
Default:
false |
sameAs string |
An field based validation (field must be same as other field) Enables a validation where the value of this field must match the value of another field. Perfect for password entry, for example.
Only available with types:
text, expression, password Examples: 1) Password doublecheck
|
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Password
- type: password
name: mypassword
label: Password
default: ''
required: true
minLength: 8
maxLength: 20
regex:
expression: "^(?=.*[a-z])(?=.*[A-Z])(?=.*[0-9])(?=.*[!@#\\$%\\^&\\*])"
description: Must contain at least 1 numeric, 1 special, 1 upper and 1 lower character
icon: lock
- type: password
name: mypassword_verify
label: Verify Password
default: ''
sameAs: mypassword # sameas-validation : value must be the same as the field 'mypassword'
icon: lock
checkbox formfield
A checkbox field
Below are the properties that are specifically for a checkbox formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= checkbox) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Checkbox
- type: checkbox
name: areyousure
label: Confirmation
default: false
placeholder: are you sure?
radio formfield
A radio field (multi options)
Below are the properties that are specifically for a radio formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= radio) |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Radio
- type: radio
name: linuxfavourite
label: Choose your favorite linux flavour
values:
- CentOS
- Ubuntu
- Red Hat
- Debian
default: CentOS
required: true
2) Radio with labels
- type: radio
name: linuxfavourite
label: Choose your favorite linux flavour
values:
- label: CentOS
value: c_os
- label: Ubuntu
value: ubu
- label: Red Hat
value: rht
- label: Debian
value: deb
default: c_os
required: true
enum formfield
A multi-column filterable dropdown box
The enum field will create a powerfull dropdown box with multi-column, multiselect and filter capabilities. The enum field can be used in 3 ways.
* fixed list : simply use the values
property to set a fixed list
* database query : you can use the query and dbConfig property to query a mysql, mssql, postgres, oracle or mongodb.
* expression : you can use the expression property to create data. in this case the output of the expression can be :
* single item : a single item like a string, integer, …
* array of items : an array of strings, integers, …
* object : a single 1-dimensional javascript object like {"name":"ansibleforms","description":"is awesome"}
* array of objects : an array of objects like [{"name":"ansibleforms","description":"is awesome"},{"name":"ansibleguy","description":"is the best"}]
Filtering :
You can just start typing when on an enum field, filtering will happen automatically.
You can tune with filterColumns
. Otherwise filtering falls back to the previewColumn
or the first visible column.
Multiselect :
Use multiple
to allow multiselect
Below are the properties that are specifically for a enum formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= enum) |
data | |
dbConfig string, array or object |
A database connection
When you want to query data from a database, you will need the proper connection information.
Only available with types:
enum, expression, table Examples: 1) get information from a mysql database (legacy example)
2) get information from a mysql database (new example)
3) get information from a mysql database (array example)
4) get information from a mongodb
|
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
expression string |
A javascript expression.
By default this javascript is evaluated on the server side and limited to predefined functions (for security).
However in combination with
Only available with types:
enum, expression, table, html Examples: 1) Get a list of users from a rest api
2) Filter and sort an array of objects
3) Make a numbered list
4) Use the alias `local`
5) Use the alias `local_out`
|
placeholderColumn string |
The column of a selected item that is used in a placeholder
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
query string |
The query to select data from a database
This is typically a classic SELECT statement.
Only available with types:
expression, enum, table Examples: 1) get information from a mysql database
2) get information from a mongodb
|
refresh boolean|string |
Allow a manual or auto refresh
A query or expression is by default run once (if it doesn’t contain any dependencies).
Default:
false
Only available with types:
enum, expression |
runLocal boolean |
Run an expression locally
When running expressions, by default they are run remotely on the server.
Default:
false
Only available with types:
enum, expression, table |
valueColumn string |
The column of a selected item that needs to exported as extravar
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
values array |
A list of values To manually populate an enum field
Only available with types:
enum Examples: 1) list of cities
|
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
filterColumns array |
The list of columns that you can filter on
By default the
Only available with types:
enum Examples: 1) Show usage
|
output | |
asCredential boolean |
Send credential as extravar
Use the value of this field to search for a credential with the same name
Default:
false
Only available with types:
text, password, enum, expression Examples: 1) Search and send the credential named 'vcenter'
|
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
outputObject boolean |
Output the selection of a enum-field as a full object.
When selecting from an
Default:
false
Only available with types:
enum |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
columns array |
The list of columns visible in the dropdown box
By default all properties are show in an
Only available with types:
enum Examples: 1) Show only wanted columns
|
group string |
The field group name
With this attribute you can group fields together. |
horizontal boolean added in version 4.0.3 |
Converts a dropdown box to a horizontal selector
A
Default:
false
Only available with types:
enum |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
pctColumns array |
The list of columns that should visualized as a percentage-bar
By default all properties are show with its regular value.
Only available with types:
enum Examples: 1) Show usage
|
previewColumn string |
The column of the selected item(s) that is shown in the dropdown-preview
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
sticky boolean |
Make a dropdown box permanently visible
A
Default:
false
Only available with types:
enum |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
asCredential boolean |
Send credential as extravar
Use the value of this field to search for a credential with the same name
Default:
false
Only available with types:
text, password, enum, expression Examples: 1) Search and send the credential named 'vcenter'
|
columns array |
The list of columns visible in the dropdown box
By default all properties are show in an
Only available with types:
enum Examples: 1) Show only wanted columns
|
dbConfig string, array or object |
A database connection
When you want to query data from a database, you will need the proper connection information.
Only available with types:
enum, expression, table Examples: 1) get information from a mysql database (legacy example)
2) get information from a mysql database (new example)
3) get information from a mysql database (array example)
4) get information from a mongodb
|
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
expression string |
A javascript expression.
By default this javascript is evaluated on the server side and limited to predefined functions (for security).
However in combination with
Only available with types:
enum, expression, table, html Examples: 1) Get a list of users from a rest api
2) Filter and sort an array of objects
3) Make a numbered list
4) Use the alias `local`
5) Use the alias `local_out`
|
filterColumns array |
The list of columns that you can filter on
By default the
Only available with types:
enum Examples: 1) Show usage
|
group string |
The field group name
With this attribute you can group fields together. |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
horizontal boolean added in version 4.0.3 |
Converts a dropdown box to a horizontal selector
A
Default:
false
Only available with types:
enum |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
multiple boolean |
Enable multi select Enable multiple select with dropdown boxes.
Default:
false
Only available with types:
enum |
name string / required / unique |
Field name This attribute represents the name of the form field. |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
outputObject boolean |
Output the selection of a enum-field as a full object.
When selecting from an
Default:
false
Only available with types:
enum |
pctColumns array |
The list of columns that should visualized as a percentage-bar
By default all properties are show with its regular value.
Only available with types:
enum Examples: 1) Show usage
|
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
placeholderColumn string |
The column of a selected item that is used in a placeholder
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
previewColumn string |
The column of the selected item(s) that is shown in the dropdown-preview
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
query string |
The query to select data from a database
This is typically a classic SELECT statement.
Only available with types:
expression, enum, table Examples: 1) get information from a mysql database
2) get information from a mongodb
|
refresh boolean|string |
Allow a manual or auto refresh
A query or expression is by default run once (if it doesn’t contain any dependencies).
Default:
false
Only available with types:
enum, expression |
required boolean |
Required field Makes the field required.
Default:
false |
runLocal boolean |
Run an expression locally
When running expressions, by default they are run remotely on the server.
Default:
false
Only available with types:
enum, expression, table |
sticky boolean |
Make a dropdown box permanently visible
A
Default:
false
Only available with types:
enum |
type string / required |
Field type (= enum) |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
valueColumn string |
The column of a selected item that needs to exported as extravar
When you select an item in an
Default:
first column
Only available with types:
enum Examples: 1) Export name
|
values array |
A list of values To manually populate an enum field
Only available with types:
enum Examples: 1) list of cities
|
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Queries
since queries are so diverse, there is a separate section on queries with examples.
expression formfield
A powerfull javascript driven expression field
Below are the properties that are specifically for a expression formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
type string / required |
Field type (= expression) |
data | |
dbConfig string, array or object |
A database connection
When you want to query data from a database, you will need the proper connection information.
Only available with types:
enum, expression, table Examples: 1) get information from a mysql database (legacy example)
2) get information from a mysql database (new example)
3) get information from a mysql database (array example)
4) get information from a mongodb
|
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime
A default can now hold placeholders like |
editable boolean |
Makes an expression editable
An expression is by default readonly.
Default:
false
Only available with types:
expression |
evalDefault boolean added in version 4.0.5 |
Evaluates default value
A default can be treated as javascript and can thus hold expressions like
Default:
false
Only available with types:
text, textarea, number, expression, password, enum, radio, checkbox, datetime |
expression string |
A javascript expression.
By default this javascript is evaluated on the server side and limited to predefined functions (for security).
However in combination with
Only available with types:
enum, expression, table, html Examples: 1) Get a list of users from a rest api
2) Filter and sort an array of objects
3) Make a numbered list
4) Use the alias `local`
5) Use the alias `local_out`
|
query string |
The query to select data from a database
This is typically a classic SELECT statement.
Only available with types:
expression, enum, table Examples: 1) get information from a mysql database
2) get information from a mongodb
|
refresh boolean|string |
Allow a manual or auto refresh
A query or expression is by default run once (if it doesn’t contain any dependencies).
Default:
false
Only available with types:
enum, expression |
runLocal boolean |
Run an expression locally
When running expressions, by default they are run remotely on the server.
Default:
false
Only available with types:
enum, expression, table |
value any added in version 4.0.17 |
A fixed value (any type) for the expression
To manually populate an expression field (dictionary, array, number, boolean, string).
Only available with types:
expression Examples: 1) list of cities
2) custom object
|
interaction | |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
output | |
asCredential boolean |
Send credential as extravar
Use the value of this field to search for a credential with the same name
Default:
false
Only available with types:
text, password, enum, expression Examples: 1) Search and send the credential named 'vcenter'
|
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
in object added in version 2.2.4 |
A list validation (must be in list)
Enforces a validation where the current field must be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip is in range
|
maxLength number |
Field maximum length Forces a string-field to be maximum x long.
Only available with types:
text, expression, password |
minLength number |
Field minimum length Forces a string-field to be at least x long.
Only available with types:
text, expression, password |
notIn object added in version 2.2.4 |
A list validation (can not be in list)
Enforces a validation where the current field can not be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime Examples: 1) Check if ip exists
|
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime, file Examples: 1) Validate email address
2) Strong password
3) Only pdf files
|
required boolean |
Required field Makes the field required.
Default:
false |
sameAs string |
An field based validation (field must be same as other field) Enables a validation where the value of this field must match the value of another field. Perfect for password entry, for example.
Only available with types:
text, expression, password Examples: 1) Password doublecheck
|
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
hide boolean |
Hides an expression field
Set to
Default:
false
Only available with types:
expression |
icon string |
Field icon Some formfields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, expression, password, enum, file |
isHtml boolean |
Renders text as html If an expression value has html tags (for example ), it will render the value as such.
Default:
false
Only available with types:
expression Examples: 1) Show bold in an expression
|
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Expressions
since expressions are so diverse, there is a separate section on expressions with examples.
table formfield
A table input field (insert, modify, delete)
A table field allows you to manually add multi object arrays.
You can start from an empty list, but you can also retrieve existing data first using :
* database query : you can use the query and dbConfig property to query a mysql, mssql server, postgres, oracle or mongodb.
* expression : you can use the expression property to create or retrieve data. in this case the output of the expression can be any type.
Below are the properties that are specifically for a table formfield
Attribute | Comments |
---|---|
basic | |
help string |
Field help message Some fields require additional help information. This help message will be shown below the field.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
label string |
Field label A friendly name/label for the field
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
name string / required / unique |
Field name This attribute represents the name of the form field. |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, datetime, number, password, checkbox, radio, enum, expression, table, file |
tableFields array |
The list of fields in a table
Every table field has its own separated table fields. The explanation of a tablefield requires a separate help.
Only available with types:
table |
type string / required |
Field type (= table) |
data | |
dbConfig string, array or object |
A database connection
When you want to query data from a database, you will need the proper connection information.
Only available with types:
enum, expression, table Examples: 1) get information from a mysql database (legacy example)
2) get information from a mysql database (new example)
3) get information from a mysql database (array example)
4) get information from a mongodb
|
expression string |
A javascript expression.
By default this javascript is evaluated on the server side and limited to predefined functions (for security).
However in combination with
Only available with types:
enum, expression, table, html Examples: 1) Get a list of users from a rest api
2) Filter and sort an array of objects
3) Make a numbered list
4) Use the alias `local`
5) Use the alias `local_out`
|
query string |
The query to select data from a database
This is typically a classic SELECT statement.
Only available with types:
expression, enum, table Examples: 1) get information from a mysql database
2) get information from a mongodb
|
runLocal boolean |
Run an expression locally
When running expressions, by default they are run remotely on the server.
Default:
false
Only available with types:
enum, expression, table |
interaction | |
allowDelete boolean |
Allow table delete A table can be used to modify existing data. If you don’t was recoreds to be deleted, set this property to false.
Default:
true
Only available with types:
table |
allowInsert boolean |
Allow table insert
A table can be used to modify existing data. If new data is allowed, set this property to false.
Default:
true
Only available with types:
table |
dependencies list / elements=object |
Show/hide this field based on the values or other fields
Each dependency element is either an object with the following 2 attributes:
*
Add an exlamation mark
Add a new way of dependency. Use Examples: 1) Show a field based on a checkbox
2) Show a field if another field is valid
3) Show a field based on 2 fields, using the 'or' function
|
dependencyFn string added in version 4.0.0 |
The dependency logical function This attribute represents the logical function between multiple dependencies.
Choices:
|
insertColumns array added in version 4.0.5 |
The insert columns in table
With a tablefield, you can choose which fields are visible during insert. This way you can choose to hide certain fields.
Use this property to set the insert fields.
Only available with types:
table |
readonlyColumns array |
The readonly columns in table
With a tablefield, some fields might need to be readonly, like an
Only available with types:
table |
output | |
deleteMarker string |
Adds an additional deletemarker field
When you remove a record in a table, it gets removed.
Only available with types:
table Examples: 1) Mark delete record
|
insertMarker string |
Adds an additional insertmarker field
When you add a record in a table, it simply gets added.
Only available with types:
table Examples: 1) Mark new record
|
model string or array |
Extravar modelling
By default, a field is sent as a root-extravar. model can now be an array you can now model arrays Examples: 1) Model 2 fields together as a single object
|
noOutput boolean |
Do not output as extravar
Form fields are by default send as extravars.
Default:
false |
security | |
noLog boolean added in version 2.2.3 |
Disable backend logging Disables logging in the backend, to hide passwords for example.
Default:
false Examples: 1) hide password in log
|
validation | |
ignoreIncomplete boolean |
Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders,
Default:
false |
required boolean |
Required field Makes the field required.
Default:
false |
validIf object added in version 2.2.4 |
An field based validation (field must be true)
Enforces a validation where a referencing (expression) field must be true.
This field requires an object with 2 attributes:
* Examples: 1) Ip must be pingable
|
validIfNot object added in version 2.2.4 |
An field based validation (field must be false)
Enforces a validation where a referencing (expression) field must be false.
This field requires an object with 2 attributes:
* Examples: 1) Check if powered off
|
visualization | |
group string |
The field group name
With this attribute you can group fields together. |
line string added in version 4.0.3 |
The field line name
With this attribute you can group fields in a single line together. |
width string added in version 4.0.3 |
The field width
With this attribute you can set the width of a field.
Choices:
Examples: 1) Name and lastname
|
Examples
1) Table
- type: table
name: member
label: Add club members
expression: "[{department:'HR',firstname:'Ansible',lastname:'Guy',age:46,food:'veggies',paid:true}]"
allowInsert: true
allowDelete: true
insertMarker: isNewItem
deleteMarker: isRemovedItem
readonlyColumns:
- department
- firstname
- lastname
- paid
required: true
tableFields:
- name: department
label: Department
type: enum
from: another_expression_array_field
columns: []
valueColumn: column_holding_value
previewColumn: column_as_preview
pctColumns: []
filterColumns: []
outputObject: false
- name: firstname
label: First Name
type: text
required: true
default: ""
minLength: 2
regex:
expression: "[a-zA-Z]*"
description: Must be normal characters
icon: user
- name: lastname
label: Last Name
type: text
required: true
default: ""
minLength: 5
- name: age
label: How old ?
type: number
required: true
default: 12
minValue: 12
maxValue: 80
- type: enum
name: food
label: Favorite food
default: veggies
values:
- pasta
- pizza
- fries
- steak
- veggies
- name: paid
label: membership
placeholder: Paid yet ?
type: checkbox
required: true
default: true
Tablefield Object
Each tablefield is a miniature form on it’s own. As you will see, many of the form fields are also usable here.
Attribute | Comments |
---|---|
basic | |
name string / required / unique |
Field name This attribute represents the name of the form field. |
type string / required |
Tablefield type Other attributes might only be available for some tablefield types.
Choices:
1) Text
|
label string |
Tablefield label A friendly name/label for the tablefield |
placeholder string |
In-field help value Some form fields allow an in-field hint value.
Only available with types:
text, textarea, number, password, checkbox, enum, datetime |
data | |
default many |
Default value
The type of the value depends on the field type.
Only available with types:
text, textarea, number, password, enum, checkbox, datetime |
from string |
Datasource
In a table we can have an
Only available with types:
enum |
outputObject boolean |
Output the selection of an enum field as a full object.
When selecting from an
Default:
false
Only available with types:
enum |
valueColumn string |
The column of a selected item that needs to exported as extravar
When you select an item in an
Default:
first column
Only available with types:
enum 1) Export name
|
datetime | |
dateType string added in version 4.0.2 |
DateType of the datetime picker The datetime picker can pick several types
Choices:
Only available with types:
datetime |
interaction | |
filterColumns array |
The list of columns that you can filter on
By default the
Only available with types:
enum 1) Show usage
|
validation | |
required boolean |
Required field Makes the field required.
Default:
false |
minLength number |
Field minimum length Forces a string-field to be at least x long.
Only available with types:
text, expression, password |
maxLength number |
Field maximum length Forces a string-field to be maximum x long.
Only available with types:
text, expression, password |
minValue number |
Field minimum value Forces a number-field to not be lower than…
Only available with types:
number |
maxValue number |
Field maximum value Forces a number-field to not be higher than…
Only available with types:
number |
regex object |
A regular expression validation
Enforces a validation where the current field must match a regular expression.
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime 1) Validate email address
2) Strong password
|
notIn object added in version 2.2.4 |
A list validation (can not be in list)
Enforces a validation where the current field can not be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime 1) Check if ip exists
|
in object added in version 2.2.4 |
A list validation (must be in list)
Enforces a validation where the current field must be one of the values in a list (referencing another field).
This field requires an object with 2 attributes:
*
Only available with types:
text, expression, password, datetime 1) Check if ip is in range
|
visualization | |
icon string |
Field icon Some tablefields can hold a nice looking icon. The icon name is a free fontawesome 6 icon. You can find more information at www.fontawesome.com
Only available with types:
text, number, password, enum, datetime |
sticky boolean |
Make a dropdown box permanently visible
A
Default:
false
Only available with types:
enum |
horizontal boolean added in version 4.0.3 |
Converts a dropdown box to a horizontal selector
A
Default:
false
Only available with types:
enum |
columns array |
The list of columns visible in the dropdown box
By default all properties are show in an
Only available with types:
enum 1) Show only wanted columns
|
pctColumns array |
The list of columns that should visualized as a percentage-bar
By default all properties are show with its regular value.
Only available with types:
enum 1) Show usage
|
previewColumn string |
The column of the selected item(s) that is shown in the dropdown-preview
When you select an item in an
Default:
first column
Only available with types:
enum 1) Export name
|