# New MenuItem Wizard

## Overview

<div align="center"><figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-ee39f39bbe14359ce74f217403bb776c81c0303f%2Fnew-menu-item.jpg?alt=media" alt=""><figcaption><p>New MenuItem Wizard</p></figcaption></figure></div>

The **New MenuItem Wizard** allows developers to create menu items within an existing [Servoy Menu](https://docs.servoy.com/guides/develop/application-design/data-modeling/menu#overview). This tool is used to define a unique identifier (name) for a menu item and add it to the desired menu structure. Each menu item can later be customized and linked to specific actions or properties.

## Sections

### Menu Item Name

A single input field for specifying the menu item’s unique name (or ID).\
The name is validated to ensure uniqueness within the selected menu.

### Action Buttons

* **OK**: Adds the menu item to the selected menu or menu item with the specified name.
* **Cancel**: Closes the wizard without adding a menu item.

## Using the New MenuItem Wizard

<div align="center"><figure><img src="https://3933488479-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FjpWd52BKwABWxF2lScUK%2Fuploads%2Fgit-blob-01a5d0d81851fef6e16f18b595b5fe41c82135b2%2Fnew-menu-item-wizard.gif?alt=media" alt=""><figcaption><p>Create a new MenuItem</p></figcaption></figure></div>

Here are the steps for using the **New MenuItem Wizard**:

1. Open the Wizard
   * In the [Solution Explorer](https://docs.servoy.com/reference/solution-explorer#overview), locate the `Menus` section and expand it.
   * Right-click on the menu or an existing menu item and select `Create menu item` to launch the wizard.
2. Define the Menu Item Name
   * Enter a meaningful and unique name for the new menu item in the provided input field.
   * Ensure the name reflects the purpose or function of the item for better organization.
3. Add Sub-Menu Items (Optional)
   * To create a sub-menu item, right-click on an existing menu item instead of the menu itself and select `Create menu item`.
   * Enter the name for the sub-menu item. The new item will automatically be added as a child of the selected menu item, creating a nested structure.
4. Finalize the Action
   * Click `OK` to save your changes. The new item will appear in the [Solution Explorer](https://docs.servoy.com/reference/solution-explorer#overview), either as a top-level item or nested under its parent menu item.
   * If you need to exit without adding a menu item, click `Cancel`.

See [Menu Item](https://docs.servoy.com/servoycore/object-model/solution/menuitem#properties-summarized) for properties that can be set on a **Menu Item** from Properties View.
