Campo Number
Un valor entero o decimal, como un puerto o una cantidad
Propiedades
Las propiedades disponibles para un campo number, agrupadas por finalidad:
| Atributo | Comentarios |
|---|---|
| basic | |
| name string / obligatorio / único | Field name
This attribute represents the name of the form field. |
| type string / obligatorio | Field type
Other attributes might only be available for some field types. Valor: number |
| label string | Field label
A friendly name/label for the field. Note: if not set, the field name is used as label, but not when type is html. Since 6.0.3: Supports placeholders for dynamic labels (e.g., |
| placeholder string | In-field help value
Some form fields allow an in-field hint value. Since 6.0.3: Supports placeholders for dynamic hints (e.g., |
| help string | Field help message
Some fields require additional help information. This help message will be shown below the field. Since 6.0.3: Supports placeholders for dynamic help text (e.g., |
| data | |
| default many | Default value
The type of the value depends on the field type.
For |
| evalDefault boolean añadido en la versión 4.0.5 | Evaluates default value
A default can be treated as javascript and can thus hold expressions like Por defecto: false |
| interaction | |
| dependencyFn string añadido en la versión 4.0.0 | The dependency logical function
This attribute represents the logical function between multiple dependencies. Opciones:
|
| 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:
Or with the following 2 attributes:
Use in combination with attribute |
| output | |
| output boolean añadido en la versión 6.2.0 | Include field value as extravar
Form fields are by default sent as extravars. Por defecto: true |
| model string or array | Extravar modelling
By default, a field is sent as a root-extravar. |
| security | |
| noLog boolean añadido en la versión 2.2.3 | Disable backend logging
Disables logging in the backend, to hide passwords for example. Por defecto: false |
| validation | |
| required boolean | Required field
Makes the field required. Por defecto: false |
| minValue number | Field minimum value
Forces a number-field to not be lower than… Since 6.0.3: Supports placeholders for dynamic validation (e.g., |
| maxValue number | Field maximum value
Forces a number-field to not be higher than… Since 6.0.3: Supports placeholders for dynamic validation (e.g., |
| validIf object añadido en la versión 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:
|
| validIfNot object añadido en la versión 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:
|
| ignoreIncomplete boolean | Allow form submit on non-evaluated placeholders
When an expression-based field has placeholders, Por defecto: false |
| visualization | |
| 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 |
| group string | The field group name
With this attribute you can group fields together. |
| line string añadido en la versión 4.0.3 | The field line name
With this attribute you can group fields in a single line together. |
| width string añadido en la versión 4.0.3 | The field width
With this attribute you can set the width of a field. Opciones:
|
Ejemplos
Ejemplos de campos number, en YAML:
Number
La definición del campo, en YAML:
- type: number
name: numberfield
label: Number
default: '1'
required: true
minValue: 0
maxValue: 10
help: A help message