static-cms/website/content/docs/widget-hidden.mdx

30 lines
1020 B
Plaintext
Raw Normal View History

2022-09-30 11:39:35 -04:00
---
group: Widgets
title: Hidden
weight: 15
2022-09-30 11:39:35 -04:00
---
2022-11-02 15:42:21 -04:00
## Overview
- **Name:** `hidden`
- **UI:** None
- **Data type:** Any valid data type
2022-09-30 11:39:35 -04:00
Hidden widgets do not display in the UI. In folder collections that allow users to create new items, you will often want to set a default for hidden fields, so they will be set without requiring an input.
2022-11-02 15:42:21 -04:00
## Widget options
For common options, see [Common widget options](/docs/widgets#common-widget-options).
| Name | Type | Default | Description |
| ------- | ------ | ------- | ---------------------------------------------------------------------------------------------------------------------------------- |
| default | string | `null` | _Optional_. The default value for the field. Accepts any valid data type. Recommended for collections that allow adding new items. |
## Example
```yaml
name: layout
label: Layout
widget: hidden
default: blog
```