diff --git a/content/docs/widgets/datetime.md b/content/docs/widgets/datetime.md index d92b926d..7213036f 100644 --- a/content/docs/widgets/datetime.md +++ b/content/docs/widgets/datetime.md @@ -14,6 +14,7 @@ The datetime widget translates a datetime picker to a datetime string. **Data type:** [Day.js](https://day.js.org/)-formatted datetime string **Options:** + - `default`: accepts a datetime string, or `'{{now}}'` to fill in the current datetime; otherwise defaults to empty string. Unitl 3.2.1 it defaults to current datetime. To get an empty field, set default to empty string. diff --git a/content/docs/widgets/relation.md b/content/docs/widgets/relation.md index 650f1d18..3e085f1f 100644 --- a/content/docs/widgets/relation.md +++ b/content/docs/widgets/relation.md @@ -14,6 +14,7 @@ The relation widget allows you to reference items from another collection. It pr **Data type:** data type of the value pulled from the related collection item **Options:** + - `collection`: (**required**) name of the referenced collection (string) - `value_field`: (**required**) name of the field from the referenced collection whose value will be stored for the relation. For nested fields, separate each subfield with a `.` (e.g. `name.first`). For list fields use a wildcard `*` to target all list items (e.g. `categories.*`). - `search_fields`: (**required**) list of one or more names of fields in the referenced collection to search for the typed value. Syntax to reference nested fields is similar to that of *value_field*.