# $default()
- Fields with Default Values
When we want a field to have a default value whenever a news instance of a definition is created, we use this keyword.
# Usage:
$default(<default value>)
WARNING
If the field is configured with the $date
or $datetime
keywords, the default value can only be an expression - at the moment, only now
is supported.
# Examples:
$time $default(08:80)
$datetime $default(now)
$text $default(some default notes)
$markdown $default(some **bold** default notes)
In the example given below, we use a definition with several fields built with the $default
keyword.
The following video shows how the $default()
keyword can be used in concert with the $text
, $markdown
, and $datetime
keywords, respectively: