# Custom Replace Menu or Custom Replace Options

**URL:** <https://forum.bpmn.io/t/custom-replace-menu-or-custom-replace-options/8220>\
**Category:** Modeler\
**Created:** [November 3, 2022, 8:41am UTC](https://forum.bpmn.io/t/custom-replace-menu-or-custom-replace-options/8220 "2022-11-03T08:41:39Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![newUser](https://forum.bpmn.io/letter_avatar_proxy/v4/letter/n/3e96dc/32.png) [@newUser](https://forum.bpmn.io/u/newUser)\
**Post date:** [November 3, 2022, 8:41am UTC](https://forum.bpmn.io/t/custom-replace-menu-or-custom-replace-options/8220/1 "2022-11-03T08:41:40Z")

</div>

Hello, I am trying to find a way how to add more Flows to the ReplaceMenu of the Flows. My thought is to make a custom replace menu with custom replace options but I dont know how to register the new option so that instead 3 Flows I will have 4, and the fourth flow will be with custom icon and Name.

```auto
var SEQUENCE_FLOW = [
  {
    label: 'Sequence Flow',
    actionName: 'replace-with-sequence-flow',
    className: 'bpmn-icon-connection'
  },
  {
    label: 'Default Flow',
    actionName: 'replace-with-default-flow',
    className: 'bpmn-icon-default-flow'
  },
  {
    label: 'Conditional Flow',
    actionName: 'replace-with-conditional-flow',
    className: 'bpmn-icon-conditional-flow'
  },
 {
    label: 'Custom Flow',
    actionName: 'replace-with-custom-flow',
    className: 'bpmn-icon-customl-flow'
  }
];

```

I have also seen this example [https://codesandbox.io/s/replace-menu-provider-5msqk?file=/src/replace/MyReplaceMenuProvider.js](https://codesandbox.io/s/replace-menu-provider-5msqk?file=/src/replace/MyReplaceMenuProvider.js) but I am not sure how to add a new custom flow 😕

Which is the right way to do that?  
Could you please give me a small code example of how and were can I register the new Flow?

Thanks.

---

<div class="post-metadata">

**Author:** ![barmac](https://forum.bpmn.io/user_avatar/forum.bpmn.io/barmac/32/974_2.png) [@barmac](https://forum.bpmn.io/u/barmac)\
**Post date:** [July 9, 2025, 10:16am UTC](https://forum.bpmn.io/t/custom-replace-menu-or-custom-replace-options/8220/2 "2025-07-09T10:16:06Z")

</div>

Closed on July 9, 2025, 10:16am UTC

Closing old topics.
