# Number Input Node DB2 set the number by input

**URL:** <https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326>\
**Category:** Dashboard\
**Tags:** dashboard-2\
**Created:** [11 October 2024 20:48 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326 "2024-10-11T20:48:46Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [11 October 2024 20:48 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326/1 "2024-10-11T20:48:46Z")

</div>

looking at examples and they documents don't see a way to set the number by an input. All I find are ways to set different aspects of the node. Is there a way to set the number by input?

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [11 October 2024 21:13 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326/2 "2024-10-11T21:13:25Z")

</div>

Hi @gerry,  
Probably I misunderstood your question. But can't you just inject the numeric input via ´msg.payload´?

---

<div class="post-metadata">

**Author:** ![gerry](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/gerry/32/21604_2.png) [@gerry](https://discourse.nodered.org/u/gerry)\
**Post date:** [11 October 2024 21:26 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326/3 "2024-10-11T21:26:27Z")

</div>

Wow, didn't see that coming, way overthought the issue.  
Thanks

---

<div class="post-metadata">

**Author:** ![BartButenaers](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bartbutenaers/32/10476_2.png) [@BartButenaers](https://discourse.nodered.org/u/BartButenaers)\
**Post date:** [12 October 2024 05:00 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326/4 "2024-10-12T05:00:39Z")

</div>

I completely get your confusion.  
You have to look it this way:

- The value of a ui node is passed via `msg.payload`.
- When dynamic properties are supported, you can overwrite the (part of the) settings from the config screen via `msg.ui_update.xxx`
- And then there are a couple of others, e.g. `msg.enable`, `msg.visible` and `msg.class` (which are implemented in the [ui\_base](https://github.com/FlowFuse/node-red-dashboard/blob/main/nodes/config/ui_base.js#L857) class, so they are available for all nodes even the third party contributions).

---

<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:** [26 October 2024 05:01 UTC](https://discourse.nodered.org/t/number-input-node-db2-set-the-number-by-input/92326/5 "2024-10-26T05:01:14Z")

</div>

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