Number Attribute

How to use in JSON metadata in form builder:
{
"id": "number",
"is_standard": true,
"editable": true,
"display_order": 9,
"label": "Number field",
"show_label": true,
"data_type": "integer",
"input_type": "NUMBER",
"input_type_size": "lg",
"input_type_variant": "outlined",
"keyboard_type": "numeric",
"placeholder_text": "Placeholder",
"max_length": 10,
"min_length": 2,
"initial_value": "",
"validation_rules": {}
}
Properties of number attribute:
| # | Attribute | Default | Description |
|---|---|---|---|
| 1 | id | number | Base attribute which specifies "number" input field. |
| 2 | is_standard | true | No need to change (by default: TRUE) |
| 3 | editable | true | Allows user to edit the input field |
| 4 | display_order | 1 | Allows user to define the order of the fields |
| 5 | label | Number field | Used to specify the label of the field |
| 6 | show_label | true | When set to true it makes label Visible |
| 7 | label_font_size | sm, md, lg | Changes the font size of the label |
| 8 | data_type | String | It allows the users to specifies the inputs data types |
| 9 | input_type | NUMBER | Base attribute which specifies input types no need to change |
| 10 | input_type_size | sm, md, lg | Possible values xl, 2xl, 3xl |
| 11 | input_type_variant | outlined, flat | flat - flat input with an underline; outlined - outline with an outline |
| 12 | keyboard_type | default | It is used to specify the type of keyboard |
| 13 | placeholder_text | Placeholder | Placeholder temporarily takes the place of the final data |
| 14 | max_length | 16 | Defines the max input length |
| 15 | min_length | 2 | Defines the min input length |
| 16 | initial_value | " " | It defines the intial value in the input field |