# Callback when nodes are cloned

**URL:** <https://discourse.nodered.org/t/callback-when-nodes-are-cloned/48967>\
**Category:** Core Development\
**Created:** [27 July 2021 16:07 UTC](https://discourse.nodered.org/t/callback-when-nodes-are-cloned/48967 "2021-07-27T16:07:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![petrus](https://avatars.discourse-cdn.com/v4/letter/p/ecd19e/32.png) [@petrus](https://discourse.nodered.org/u/petrus)\
**Post date:** [27 July 2021 16:07 UTC](https://discourse.nodered.org/t/callback-when-nodes-are-cloned/48967/1 "2021-07-27T16:07:18Z")

</div>

Hi! Can I have execute some code when I cloned some nodes? I need this to generate new names in components to ensure that there is not duplicated names.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [27 July 2021 20:31 UTC](https://discourse.nodered.org/t/callback-when-nodes-are-cloned/48967/2 "2021-07-27T20:31:04Z")

</div>

I don't think that core development is the right category for this. You probably want "Creating Nodes".

When you say "cloned", do you mean a copy/paste operation in the Editor on a node instance to create a new copy of an existing node instance?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)\
**Post date:** [25 September 2021 20:31 UTC](https://discourse.nodered.org/t/callback-when-nodes-are-cloned/48967/3 "2021-09-25T20:31:20Z")

</div>

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