> ## Documentation Index
> Fetch the complete documentation index at: https://docs.superoffice.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Edit entity menu

> Edit entity menu

This element adds an entity menu to a screen. Entity menus contain items that allow you to edit an entity, create a new entity, merge the entity with others.

## Configuration

| Setting    | Description |
| :--------- | :---------- |
| label      | UI label    |
| entity     | Entity      |
| entityMenu | Entity      |
| width      | Width       |

**Entities:**

* customer / person
* company / contact
* ticket

These must contain corresponding values for the default configuration of the menu to be added to a screen.

### Example

```crmscript theme={null}
entity = customer
entityMenu = customer
```

## Functions

### setFieldValue(String action, Map values)

You can add to the default configuration or create an entirely new menu by setting field values.

To create a new menu, exclude the simple values from the configuration.

| Action         | Map keys                                                                                 | Description |
| :------------- | :--------------------------------------------------------------------------------------- | :---------- |
| addMenu        | label<br />iconUrl<br />url<br />target<br />appendId (true/false)                       |             |
| addAnchor      | label<br />iconUrl<br />url<br />target<br />appendId (true/false)                       |             |
| addModificator | label<br />field<br />width<br />options.length<br />options.n.name<br />options.n.value |             |

<Note>
  `appendId` (v.8.4R07) will append the ID of the current entity to the URL for the anchor or menu.
</Note>

## Example maps

```crmscript theme={null}
Map m;
m.insert("label", "VG");
m.insert("iconUrl", "");
m.insert("url", "http://www.vg.no");
m.insert("target", "");

Map m3;
m3.insert("options.length", "2");
m3.insert("label", "Modificator");
m3.insert("field", "2");
m3.insert("options.0.name", "Option1");
m3.insert("options.0.value", "");
m3.insert("options.1.name", "Option2");
m3.insert("options.1.value", "");
```


## Related topics

- [Edit a user](/en/developer-portal/partner/edit-user.md)
- [Menu properties](/en/ui/blogic/learn/extra-menus/properties.md)
- [Drag and drop editor](/en/marketing/editor/learn/index.md)
- [Træk og slip-editor](/da/marketing/editor/learn/index.md)
- [Editor slepen en neerzetten](/nl/marketing/editor/learn/index.md)
- [Drag-and-Drop-Editor](/de/marketing/editor/learn/index.md)
- [Add function to menu button](/en/ui/blogic/learn/extra-menus/actions.md)
