# Default label of function node

**URL:** <https://discourse.nodered.org/t/default-label-of-function-node/83967>\
**Category:** General\
**Tags:** function-node\
**Created:** [22 December 2023 19:00 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967 "2023-12-22T19:00:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![GammaKappa](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@GammaKappa](https://discourse.nodered.org/u/GammaKappa)\
**Post date:** [22 December 2023 19:00 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/1 "2023-12-22T19:00:48Z")

</div>

When I drag a new function node on the work space it is labeled "function 2".  
Why does it have an index '2' ?

![afbeelding](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/e/ee25f50b60eada682c9935d00eb474d4aa200952.png)

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 December 2023 19:01 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/2 "2023-12-22T19:01:40Z")

</div>

Presumably you already have a function node on your workspace?

And just checking, you get function 3 if you drop another?

---

<div class="post-metadata">

**Author:** ![GammaKappa](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@GammaKappa](https://discourse.nodered.org/u/GammaKappa)\
**Post date:** [22 December 2023 19:07 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/3 "2023-12-22T19:07:29Z")

</div>

There are several function nodes on my other tabs but I created a new tab.

The first function node I drop on the (blank) workspace is labeled as '2'.  
Consecutive fuction nodes are labeled '3' , '4' etc.

Is there a 'hidden' function somewhere ?

---

<div class="post-metadata">

**Author:** ![Steve-Mcl](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/steve-mcl/32/4826_2.png) [@Steve-Mcl](https://discourse.nodered.org/u/Steve-Mcl)\
**Post date:** [22 December 2023 19:09 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/4 "2023-12-22T19:09:42Z")

</div>

One way to find out. Press `ctrl-f` then enter **function 1**

---

<div class="post-metadata">

**Author:** ![GammaKappa](https://avatars.discourse-cdn.com/v4/letter/g/c5a1d2/32.png) [@GammaKappa](https://discourse.nodered.org/u/GammaKappa)\
**Post date:** [22 December 2023 19:32 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/5 "2023-12-22T19:32:25Z")

</div>

There was a 'function 1' on one of the **other** tabs.  
It was function that I did not yet rename.  
After renaming it, a new function (on a new tab) now starts with index 1.  
Mystery solved !

Thanks for your help.

---

<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:** [5 January 2024 19:32 UTC](https://discourse.nodered.org/t/default-label-of-function-node/83967/6 "2024-01-05T19:32:39Z")

</div>

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