Date Attribute

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:
| # | Attribute | Default | Description |
|---|---|---|---|
| 1 | id | date | Base attribute which specifies "text" input field. |
| 2 | is_standard | true | No need to change (by default: TRUE) |
| 3 | editable | true | Allows user to edit the input field |
| 4 | readonly | true | Sets Preview to Read-Only |
| 5 | display_order | 1 | Allows user to define the order of the fields |
| 6 | icon | calendar-today | Helps to add icon to the field eg: iconName from vector icon |
| 7 | icon_color | primary.500 | It changes the color of the icon |
| 8 | label | Date field | Used to specify the label of the field |
| 9 | input_type | DATE | Base attribute which specifies input types no need to change |
| 10 | placeholder_text | DD/MM/YYYY | Placeholder temporarily takes the place of the final data |
| 11 | date_format | DD/MM/YYYY | Date Format Defines the format of date eg: DD/MM/YYYY |
| 12 | initial_value | " " | It defines the initial value in the input field |