Number
Field options
Name | Type | Description |
---|---|---|
name | string | The name by which the field will internally be referenced |
displayText | string | The main field label displayed above the field |
description | string | An additional description displayed below the main label |
defaultValue | string | The value the field should initially be filled with |
options | object | Additional field options (see below) |
options.required | boolean | Whether the field must be filled to advance |
options.readOnly | boolean | Whether it’s allowed to change the field value |
options.confirmation | boolean | Whether to include this field in the confirmation page |
options.placeholder | string | A placeholder to display inside the field when it’s not filled |
options.currencyCode | enum | A 3-Character currency code as defined by ISO 4217 |
options.maximumFractionDigits | integer | A number to restrict the maxium amount of decimal places. If currencyCode is set, this will be ignored and always be 2. |
options.useGrouping | boolean | Whether to group thousands separators. Defaults to |
options.min | number | Sets the minimum valid number |
options.max | number | Sets the maximum valid number |
JSON Example
{
"name": "Price",
"displayText": "Price",
"description": "Price in €",
"type": "Number",
"defaultValue": 12300,
"options": {
"required": true,
"placeholder": "12.300,00€",
"currencyCode": "EUR",
"maximumFractionDigits": 3
}
}