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
Name | Type | Description |
---|---|---|
id | string | Assigns a name for the given field on the backend. This name can be used to refer this field in another field |
label | string | Adds a label to the given field |
isRequired | boolean | Makes a field mandatory |
showInTable | boolean | Displays the field in a table after saving the entry |
initValueExp | string | Evaluates and returns the default value based on an expression |