Skip to main content

Text Attribute

Docusaurus logo

How to use in JSON metadata in form builder:

{
"id": "text",
"is_standard": true,
"editable": true,
"display_order": 2,
"icon_color": "app.form_icon_color",
"label": "Text field",
"show_label": true,
"data_type": "String",
"input_type": "TEXT",
"input_type_size": "lg",
"input_type_variant": "outline",
"keyboard_type": "default",
"placeholder_text": "Placeholder",
"max_length": 16,
"min_length": 2,
"initial_value": "",
"validation_rules": {}
}

Properties of text attribute:

#AttributeDefaultDescription
1idtextBase attribute which specifies "text" 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
5labelText 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_typeTEXTBase 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