---
url: /documentation/input-types/menu.md
description: >-
  Configure menu reference inputs with optional multiple selection and duplicate
  prevention.
---

# Menu Input&#x20;

Enables to reference menus through a search interface.

```js
{
  input: {
    type: 'menu' // [!code focus:1]
  }
}
```

## Input Options

| Option | Values | Default | Description |
| - | - | - | - |
| `multiple` | `boolean` | `false` | Whether multiple items can be selected. |
| `allowDuplicates` | `boolean` | `true` | Whether duplicate items can be added if multiple is true. |

## Value Format

```js
[
  {
    id: 123,
    label: 'Main Menu',
  }
]
```

## Conditions

The `menu` input type supports the following conditions for [dynamic visibility](/documentation/concepts/elements/definition#dynamic-visibility):

| Condition | Payload | Description |
| - | - | - |
| `isEmpty` | `boolean`defaults to `true` | Checks whether a menu has been selected or not. |
