DateTime

This field is used to represent a Date field along with a Time field

{
"type": "datetime",
"id": "date",
"label": "Date",
"showInTable": true,
"isRequired": true,
"initValueExp": "new Date().toISOString()"
}

The example above is used to store a date and time entered by the user. By default it stores the live date and time in it because of the given initial value expression.

Field Attributes

NameTypeDescription
idstringAssigns a name for the given field on the backend. This name can be used to refer this field in another field
labelstringAdds a label to the given field
isRequiredbooleanMakes a field mandatory
showInTablebooleanDisplays the field in a table after saving the entry
initValueExpstringEvaluates and returns the default value based on an expression