# Enhanced tooltip for the \`inject\` node

**URL:** <https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883>\
**Category:** Feature Requests\
**Created:** [28 April 2021 16:32 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883 "2021-04-28T16:32:53Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [28 April 2021 16:32 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/1 "2021-04-28T16:32:54Z")

</div>

Currently, when the cursor hovers over the output port of an `inject` node, the tooltip displays the output message by property and type:

 ![tooltip](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/4/5/4594cf3a927ac4a07bf92b5ba71beb346b95665a.jpeg)

It would be useful if it could show (as much as possible) the actual values of the the message properties instead of their types. The new behavior might be an option selected in the Settings dialog or by holding down the shift key while hovering.

---

<div class="post-metadata">

**Author:** ![dceejay](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/dceejay/32/38_2.png) [@dceejay](https://discourse.nodered.org/u/dceejay)\
**Post date:** [28 April 2021 20:03 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/2 "2021-04-28T20:03:07Z")

</div>

well the actual label does try to show the values for topic and payload so that would be duplication for the most commonly used ones. The other problem is space - as soon as you have an object (like foo) then what do you show ? also now you can set it to inject context like flow.myvar - there is no way to evaluate that at deploy time when the labels are generated.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [28 April 2021 20:53 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/3 "2021-04-28T20:53:37Z")

</div>

> [@dceejay](#):
>
> the actual label does try to show the values for topic and payload

True, as long as you don't give the node a name. Then it would be nice to sort of get a notion of both what the node is for and how it does it. Of course space is an issue, just as in the debug sidebar, but here the popup goes away. You obviously noticed why I said "as much as possible." I've started injecting more and more complex stuff, especially for testing, so this would be a "nice to have."

I also just noticed that the tooltip seems to be limited to five items, but when there are six it shows "+2" at the bottom. Is this a bug?

---

<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:** [28 April 2021 20:58 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/4 "2021-04-28T20:58:28Z")

</div>

> [@drmibell](#):
>
> I also just noticed that the tooltip seems to be limited to five items, but when there are six it shows "+2" at the bottom. Is this a bug?

If it's wrong, then yes, sounds like a bug.

---

<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:** [28 April 2021 21:02 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/5 "2021-04-28T21:02:34Z")

</div>

Off by one bugs... the best kind.

Now fixed ready for 1.3.4

> <https://github.com/node-red/node-red/commit/6da8e92f20cd429bb284c56385894c4a222dc39c>

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [28 April 2021 21:02 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/6 "2021-04-28T21:02:34Z")

</div>

> [@knolleary](#):
>
> sounds like a bug

I always hesitate to yell "BUG!" But it does seem to be consistently off by +1.

---

<div class="post-metadata">

**Author:** ![drmibell](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/drmibell/32/8424_2.png) [@drmibell](https://discourse.nodered.org/u/drmibell)\
**Post date:** [28 April 2021 21:03 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/7 "2021-04-28T21:03:27Z")

</div>

> [@knolleary](#):
>
> Off by one bugs...

Five-legged or seven-legged???

---

<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:** [27 June 2021 21:04 UTC](https://discourse.nodered.org/t/enhanced-tooltip-for-the-inject-node/44883/8 "2021-06-27T21:04:04Z")

</div>

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