Skip to main content

Time Attribute

Docusaurus logo

How to use in JSON metadata in form builder:

{
"id": "time",
"is_standard": true,
"editable": true,
"readonly": true,
"display_order": 4,
"icon": "clock",
"icon_color": "primary.500",
"label": "Time field",
"input_type": "TIME",
"placeholder_text": "HH:mm",
"time_format": "HH:mm",
"initial_value": " ",
"validation_rules": {}
}

Properties of time attribute:

#AttributeDefaultDescription
1idtimeBase attribute which specifies "text" input field.
2is_standardtrueNo need to change (by default: TRUE)
3editabletrueAllows user to edit the input field
4readonlytrueSets Preview to Read-Only
5display_order1Allows user to define the order of the fields
6iconclockHelps to add icon to the field eg: iconName from vector icon
7icon_colorprimary.500It changes the color of the icon
8labelDate fieldUsed to specify the label of the field
9input_typeDATEBase attribute which specifies input types no need to change
10placeholder_textHH:mmPlaceholder temporarily takes the place of the final data
11time_formatHH:mmTime Format Defines the format of date eg: HH:mm / hh:mm A
12initial_value" "It defines the initial value in the input field