# Change node.name in function node based on received payload

**URL:** <https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000>\
**Category:** Feature Requests\
**Created:** [15 February 2021 07:56 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000 "2021-02-15T07:56:17Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeroenst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeroenst/32/22682_2.png) [@jeroenst](https://discourse.nodered.org/u/jeroenst)\
**Post date:** [15 February 2021 07:56 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/1 "2021-02-15T07:56:17Z")

</div>

I would like to have a feature to change the node.name to the incoming payload.

This way I can show the values of another node in the overview in a node instead of in the status of a node which is sometimes better viewable.

---

<div class="post-metadata">

**Author:** ![hotNipi](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/hotnipi/32/383_2.png) [@hotNipi](https://discourse.nodered.org/u/hotNipi)\
**Post date:** [15 February 2021 08:27 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/2 "2021-02-15T08:27:04Z")

</div>

There is `status` you can show under the node, much more flexibility cos you have shape + color + text to represent any condition in function.

[Adding status](https://nodered.org/docs/user-guide/writing-functions#adding-status)

---

<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:** [15 February 2021 13:33 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/3 "2021-02-15T13:33:32Z")

</div>

The Editor is not a dashboard and is not meant to be. The design philosophy used limits the Editor to being an Editor. A few additional features like status have crept in but they are deliberately very limited.

That might change in the future possibly but for now, that's the way it is. It isn't, I don't believe, a high priority on the core dev list so unless someone contributes some code ...

---

<div class="post-metadata">

**Author:** ![jeroenst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeroenst/32/22682_2.png) [@jeroenst](https://discourse.nodered.org/u/jeroenst)\
**Post date:** [15 February 2021 13:36 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/4 "2021-02-15T13:36:54Z")

</div>

I know, I also use the dashboard for normal usage but for knowing what is going on while creating and monitoring the flows I use the debug node with payload in status. But I preffer a node that shows the value in the node instead of in the status field.

---

<div class="post-metadata">

**Author:** ![dynamicdave](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dynamicdave/32/96_2.png) [@dynamicdave](https://discourse.nodered.org/u/dynamicdave)\
**Post date:** [15 February 2021 14:06 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/5 "2021-02-15T14:06:15Z")

</div>

I think @hotNipi meant adding the _node.status_ code inside a 'function' node to show what's going on.  
 ![Screen Shot 02-15-21 at 02.02 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/a/4aa1970df2aae83b9fb07efaa734dee14e509b37.jpeg)  
 ![Screen Shot 02-15-21 at 02.01 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/f/a/fac79d7ff559e84c7afbbb9359516bb99ae2cdf2.jpeg)  
 ![Screen Shot 02-15-21 at 02.08 PM](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/e/3/e317d0d55b4afccb29bc9a5891bf78297fac87f1.jpeg)  
 ![Screen Shot 02-15-21 at 02.08 PM 001](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/a/f/af8ba9fb299942c990f20c4a0ae6bf600810c79d.jpeg)

---

<div class="post-metadata">

**Author:** ![jeroenst](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/jeroenst/32/22682_2.png) [@jeroenst](https://discourse.nodered.org/u/jeroenst)\
**Post date:** [15 February 2021 14:54 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/6 "2021-02-15T14:54:28Z")

</div>

Yes, I know that possibility, but I would like to change the name instead of status.

---

<div class="post-metadata">

**Author:** ![aderici](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/aderici/32/37279_2.png) [@aderici](https://discourse.nodered.org/u/aderici)\
**Post date:** [15 February 2021 14:58 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/7 "2021-02-15T14:58:47Z")

</div>

And do you want the node to expand/collapse visually to adapt itself for the length of the new name in real time?

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [15 February 2021 15:13 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/8 "2021-02-15T15:13:06Z")

</div>

Hi @jeroenst

The name is part of the static flow configuration. It cannot be changed without a redeploy of the flow configuration.

This is why we introduced status - that _is_ the mechanism we provide to allow the editor to show real-time information from the runtime.

There are no plans to allow the node's appearance, including its label, to be changed dynamically by the runtime.

---

<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:** [16 April 2021 15:13 UTC](https://discourse.nodered.org/t/change-node-name-in-function-node-based-on-received-payload/41000/9 "2021-04-16T15:13:45Z")

</div>

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