diff --git a/content/docs/variable-type-widgets.md b/content/docs/variable-type-widgets.md index a0dca0a0..fa6d5ce9 100644 --- a/content/docs/variable-type-widgets.md +++ b/content/docs/variable-type-widgets.md @@ -5,10 +5,12 @@ group: Fields weight: 30 --- -Before this feature, the [list widget](/docs/widgets/#list) allowed a set of fields to be repeated, but every list item had the same set of fields available. With variable types, multiple named sets of fields can be defined, which opens the door to highly flexible content authoring (even page building) in Decap CMS. +Before this feature, the [list widget](/docs/widgets/#list) and [object widget](/docs/widget/#object) allowed a set of fields to be repeated, but every list item had the same set of fields available. With variable types, multiple named sets of fields can be defined, which opens the door to highly flexible content authoring (even page building) in Decap CMS. **Note: this feature does not yet support default previews and requires [registering a preview template](/docs/customization#registerpreviewtemplate) in order to show up in the preview pane.** +There is a limitation - dependent fields must be nested under an object or list. + To use variable types in the list widget, update your field configuration as follows: 1. Instead of defining your list fields under `fields` or `field`, define them under `types`. Similar to `fields`, `types` must be an array of field definition objects.