# New MenuItem Wizard

## Overview

<div align="center"><figure><img src="/files/JxDYzudZwpVXqqXPMv7K" 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](/guides/develop/application-design/data-modeling/menu.md#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="/files/vTBoH4O7UKjX2Q4xqkj4" 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](/reference/servoy-developer/solution-explorer.md#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](/reference/servoy-developer/solution-explorer.md#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](/reference/servoycore/object-model/solution/menuitem.md#properties-summarized) for properties that can be set on a **Menu Item** from Properties View.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.servoy.com/reference/servoy-developer/object-editors/new-menu-wizard/new-menu-item-wizard.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
