# UI\_numeric node

**URL:** <https://discourse.nodered.org/t/ui-numeric-node/73554>\
**Category:** Dashboard\
**Created:** [11 January 2023 19:06 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554 "2023-01-11T19:06:36Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![interscope101](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Post date:** [11 January 2023 19:06 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/1 "2023-01-11T19:06:37Z")

</div>

Hi! I need a dashboard number cycler, exactly like the UI\_numeric node; running into the following issue. The node needs to send a default value (1) whenever its input is triggered in the flow - so I have switch node with that value. The problem is that it doesn't send anything if its already on the value that it's receiving. Is there any workaround ?

---

<div class="post-metadata">

**Author:** ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)\
**Post date:** [11 January 2023 22:20 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/2 "2023-01-11T22:20:09Z")

</div>

Can you provide a small sample flow showing the issue? Please export it and paste it into a response

---

<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:** [11 January 2023 22:45 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/3 "2023-01-11T22:45:34Z")

</div>

If it always sends the same value can you just add a wire around the ui\_ numeric node ?

---

<div class="post-metadata">

**Author:** ![interscope101](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Post date:** [11 January 2023 23:08 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/4 "2023-01-11T23:08:20Z")

</div>

Here you go. If numeric node is at value "1" it doesn't pass the msg through. Also, noticed that at certain states (can't confirm which) and sent out a text string "change" instead of number.

```auto
[
    {
        "id": "7923d80d937bc1b1",
        "type": "tab",
        "label": "Flow 1",
        "disabled": false,
        "info": "",
        "env": []
    },
    {
        "id": "801a23eb0bcbbaac",
        "type": "inject",
        "z": "7923d80d937bc1b1",
        "name": "",
        "props": [
            {
                "p": "payload"
            },
            {
                "p": "topic",
                "vt": "str"
            }
        ],
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "topic": "",
        "payload": "",
        "payloadType": "date",
        "x": 600,
        "y": 360,
        "wires": [
            [
                "98ac5a1eb9f1ed54"
            ]
        ]
    },
    {
        "id": "98ac5a1eb9f1ed54",
        "type": "change",
        "z": "7923d80d937bc1b1",
        "name": "page",
        "rules": [
            {
                "t": "set",
                "p": "payload",
                "pt": "msg",
                "to": "1",
                "tot": "str"
            },
            {
                "t": "set",
                "p": "topic",
                "pt": "msg",
                "to": "topic",
                "tot": "str"
            }
        ],
        "action": "",
        "property": "",
        "from": "",
        "to": "",
        "reg": false,
        "x": 750,
        "y": 360,
        "wires": [
            [
                "5178c49d1cb0e2ce"
            ]
        ]
    },
    {
        "id": "5178c49d1cb0e2ce",
        "type": "ui_numeric",
        "z": "7923d80d937bc1b1",
        "name": "",
        "label": "",
        "tooltip": "",
        "group": "20d55a3df46c721c",
        "order": 5,
        "width": "1",
        "height": "1",
        "wrap": false,
        "passthru": true,
        "topic": "topic",
        "topicType": "msg",
        "format": "{{msg.payload}}",
        "min": "0",
        "max": "20",
        "step": 1,
        "className": "",
        "x": 890,
        "y": 360,
        "wires": [
            []
        ]
    },
    {
        "id": "20d55a3df46c721c",
        "type": "ui_group",
        "name": "CENTER",
        "tab": "5e2e41aa.9826b",
        "order": 1,
        "disp": false,
        "width": "16",
        "collapse": false,
        "className": ""
    },
    {
        "id": "5e2e41aa.9826b",
        "type": "ui_tab",
        "name": "ANALYTICS",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/8/f/8f04cc14054a71c5661de438ed67c6fce1f59278.png)

---

<div class="post-metadata">

**Author:** ![interscope101](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Post date:** [11 January 2023 23:10 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/5 "2023-01-11T23:10:26Z")

</div>

I actually want it to send out (pass through) the same value "1" whenever its triggered in the flow

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [12 January 2023 01:47 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/6 "2023-01-12T01:47:33Z")

</div>

That's what @dceejay was suggesting.

I notice that your change node sends in a string "1" this should really be a number, so I modified the change node. Try this and see if it does what you need ....

```auto
[{"id":"801a23eb0bcbbaac","type":"inject","z":"7923d80d937bc1b1","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":600,"y":360,"wires":[["98ac5a1eb9f1ed54"]]},{"id":"98ac5a1eb9f1ed54","type":"change","z":"7923d80d937bc1b1","name":"page","rules":[{"t":"set","p":"payload","pt":"msg","to":"1","tot":"num"},{"t":"set","p":"topic","pt":"msg","to":"topic","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":750,"y":360,"wires":[["5178c49d1cb0e2ce","d0c3aa72e0b149d3"]]},{"id":"5178c49d1cb0e2ce","type":"ui_numeric","z":"7923d80d937bc1b1","name":"","label":"","tooltip":"","group":"20d55a3df46c721c","order":5,"width":"1","height":"1","wrap":false,"passthru":true,"topic":"topic","topicType":"msg","format":"{{msg.payload}}","min":"0","max":"20","step":1,"className":"","x":900,"y":300,"wires":[["d0c3aa72e0b149d3"]]},{"id":"d0c3aa72e0b149d3","type":"debug","z":"7923d80d937bc1b1","name":"debug 61","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":1100,"y":360,"wires":[]},{"id":"20d55a3df46c721c","type":"ui_group","name":"CENTER","tab":"5e2e41aa.9826b","order":1,"disp":false,"width":"16","collapse":false,"className":""},{"id":"5e2e41aa.9826b","type":"ui_tab","name":"ANALYTICS","icon":"dashboard","disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

**Author:** ![interscope101](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Post date:** [12 January 2023 02:11 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/7 "2023-01-12T02:11:45Z")

</div>

Thanks, but unfortunately the issue remains. After the numeric node gets set to 1 it no longer passes that same msg through.

---

<div class="post-metadata">

**Author:** ![Sean-McG](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sean-mcg/32/54677_2.png) [@Sean-McG](https://discourse.nodered.org/u/Sean-McG)\
**Post date:** [12 January 2023 02:26 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/8 "2023-01-12T02:26:33Z")

</div>

Did you try the flow ?

> [@interscope101](#):
>
> The node needs to send a default value (1) whenever its input is triggered in the flow

Each time you inject 1 you will see 1 in the debug node, that is what you asked for ?

The numeric node doesn't need to send anything as the wire bypasses it.

---

<div class="post-metadata">

**Author:** ![interscope101](https://avatars.discourse-cdn.com/v4/letter/i/a88e4f/32.png) [@interscope101](https://discourse.nodered.org/u/interscope101)\
**Post date:** [12 January 2023 03:26 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/9 "2023-01-12T03:26:33Z")

</div>

I see, yes, that works, just need to disable msg passthrough otherwise you get duplicates if the node is not on 1 - thank you!

---

<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 January 2023 03:26 UTC](https://discourse.nodered.org/t/ui-numeric-node/73554/10 "2023-01-26T03:26:44Z")

</div>

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