# Custom Menu Provider / Replace Menu

**URL:** <https://forum.bpmn.io/t/custom-menu-provider-replace-menu/7930>\
**Category:** Modeler\
**Created:** [August 31, 2022, 12:21pm UTC](https://forum.bpmn.io/t/custom-menu-provider-replace-menu/7930 "2022-08-31T12:21:16Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Adrian-Bielefeldt](https://forum.bpmn.io/user_avatar/forum.bpmn.io/adrian-bielefeldt/32/3503_2.png) [@Adrian-Bielefeldt](https://forum.bpmn.io/u/Adrian-Bielefeldt)\
**Post date:** [August 31, 2022, 12:21pm UTC](https://forum.bpmn.io/t/custom-menu-provider-replace-menu/7930/1 "2022-08-31T12:21:17Z")

</div>

Hi everyone, I tried following the approach laid out in this [forum post](https://forum.bpmn.io/t/create-a-custom-replaceoptions/4764/3). Unfortunately, it does not seem to work. Just for testing I changed the label for Intermediate Throw Event to Intermediate Throw Event Test Edit, but when I open the replace-Menu on start, this change is not reflected.

Can anyone see where I went wrong?

Codesandbox: [https://codesandbox.io/s/custom-menu-provider-jc0wt7](https://codesandbox.io/s/custom-menu-provider-jc0wt7)

---

<div class="post-metadata">

**Author:** ![Adrian](https://forum.bpmn.io/user_avatar/forum.bpmn.io/adrian/32/3503_2.png) [@Adrian](https://forum.bpmn.io/u/Adrian)\
**Post date:** [September 5, 2022, 2:56pm UTC](https://forum.bpmn.io/t/custom-menu-provider-replace-menu/7930/2 "2022-09-05T14:56:39Z")

</div>

Foud the solution: Instead of importing the provider directly, I added an index.js. Important: The ` __depends__ ` line is necessary.

```auto
import ReplaceMenuProvider from "./ReplaceMenuProvider";

export default {
  __depends__ : ["popupMenu", "bpmnReplace"],
  __init__ : ["replaceMenuProvider"],
  replaceMenuProvider: ["type", ReplaceMenuProvider]
};

```

---

<div class="post-metadata">

**Author:** ![system](https://forum.bpmn.io/uploads/default/original/2X/b/b534893973385c2d302b38572464112e4adae002.png) [@system](https://forum.bpmn.io/u/system)\
**Post date:** [September 12, 2022, 2:56pm UTC](https://forum.bpmn.io/t/custom-menu-provider-replace-menu/7930/3 "2022-09-12T14:56:55Z")

</div>

Closed on September 12, 2022, 2:56pm UTC

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
