Skip to main content

Number Attribute

Docusaurus logo

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:

#AttributeDefaultDescription
1idnumberBase attribute which specifies "number" input field.
2is_standardtrueNo need to change (by default: TRUE)
3editabletrueAllows user to edit the input field
4display_order1Allows user to define the order of the fields
5labelNumber fieldUsed to specify the label of the field
6show_labeltrueWhen set to true it makes label Visible
7label_font_sizesm, md, lgChanges the font size of the label
8data_typeStringIt allows the users to specifies the inputs data types
9input_typeNUMBERBase attribute which specifies input types no need to change
10input_type_sizesm, md, lgPossible values xl, 2xl, 3xl
11input_type_variantoutlined, flatflat - flat input with an underline; outlined - outline with an outline
12keyboard_typedefaultIt is used to specify the type of keyboard
13placeholder_textPlaceholderPlaceholder temporarily takes the place of the final data
14max_length16Defines the max input length
15min_length2Defines the min input length
16initial_value" "It defines the intial value in the input field