Skip to main content

Date Attribute

Docusaurus logo

How to use in JSON metadata in form builder:

{
"id": "date",
"is_standard": true,
"editable": true,
"readonly": true,
"display_order": 6,
"icon": "calendar-today",
"icon_color": "primary.500",
"label": "Date field",
"input_type": "DATE",
"placeholder_text": "DD/MM/YYYY",
"date_format": "DD/MM/YYYY",
"initial_value": " ",
"validation_rules": {}
}

Properties of date attribute:

#AttributeDefaultDescription
1iddateBase 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
6iconcalendar-todayHelps 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_textDD/MM/YYYYPlaceholder temporarily takes the place of the final data
11date_formatDD/MM/YYYYDate Format Defines the format of date eg: DD/MM/YYYY
12initial_value" "It defines the initial value in the input field