# Dashboard notification OK/Cancel dialog with input wont send the value "1"

**URL:** https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592
**Category:** Dashboard
**Created:** [12 September 2022 04:07 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592 "2022-09-12T04:07:34Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![stgj](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stgj](https://discourse.nodered.org/u/stgj)
#### Post date: [12 September 2022 04:07 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/1 "2022-09-12T04:07:34Z")

</div>

Hi.

I have a problem with the Dashboard Notification node.  
I choose "OK/Cancel dialog with input". The description sys that this notification will send the value from the user input in msg.payload.  
But when I try to enter the value "1", the text from the OK button is sent.  
If I enter the value "0", then the msg.payload is "0" as expected.  
So, anything other than the value "1" is sent.  
A bug?

Best regards  
Steffen

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [12 September 2022 06:22 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/2 "2022-09-12T06:22:46Z")

</div>

Please post a simple flow showing the problem.

---

<div class="post-metadata">

### Author: ![stgj](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stgj](https://discourse.nodered.org/u/stgj)
#### Post date: [12 September 2022 17:12 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/3 "2022-09-12T17:12:17Z")

</div>

```
[
    {
        "id": "ac631a6e.90e038",
        "type": "tab",
        "label": "Flow 2",
        "disabled": false,
        "info": ""
    },
    {
        "id": "e4831b1f.a5a618",
        "type": "ui_toast",
        "z": "ac631a6e.90e038",
        "position": "prompt",
        "displayTime": "3",
        "highlight": "",
        "sendall": true,
        "outputs": 1,
        "ok": "Set",
        "cancel": "Cancel",
        "raw": false,
        "className": "",
        "topic": "",
        "name": "",
        "x": 430,
        "y": 320,
        "wires": [
            [
                "7b0e8ae1.98c404"
            ]
        ]
    },
    {
        "id": "ef047d4f.d9ac6",
        "type": "ui_button",
        "z": "ac631a6e.90e038",
        "name": "",
        "group": "d098c4a8.c19378",
        "order": 4,
        "width": 0,
        "height": 0,
        "passthru": false,
        "label": "Set O_1",
        "tooltip": "",
        "color": "",
        "bgcolor": "",
        "className": "",
        "icon": "",
        "payload": "",
        "payloadType": "str",
        "topic": "Set O_1",
        "topicType": "str",
        "x": 260,
        "y": 320,
        "wires": [
            [
                "e4831b1f.a5a618"
            ]
        ]
    },
    {
        "id": "7b0e8ae1.98c404",
        "type": "debug",
        "z": "ac631a6e.90e038",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "true",
        "targetType": "full",
        "statusVal": "",
        "statusType": "auto",
        "x": 590,
        "y": 320,
        "wires": []
    },
    {
        "id": "d098c4a8.c19378",
        "type": "ui_group",
        "name": "Kommandoer",
        "tab": "1ceb6d80.1f2613",
        "order": 3,
        "disp": true,
        "width": "6",
        "collapse": false,
        "className": ""
    },
    {
        "id": "1ceb6d80.1f2613",
        "type": "ui_tab",
        "name": "Hjem",
        "icon": "dashboard",
        "disabled": false,
        "hidden": false
    }
]

```

---

<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: [12 September 2022 17:21 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/4 "2022-09-12T17:21:11Z")

</div>

Which version of the nodejs, Node-RED and dashboard nodes are you using ?  
I just imported your flow into latest and I get 0, 1, 2 ok...

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

---

<div class="post-metadata">

### Author: ![stgj](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stgj](https://discourse.nodered.org/u/stgj)
#### Post date: [12 September 2022 17:48 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/5 "2022-09-12T17:48:53Z")

</div>

NodeJs 14.19.1  
Node-red V1.3.4  
Dashboard node 3.1.1

 ![Skjermbilde 2022-09-12 kl. 19.45.29](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/d/1d0f70c75bb5e1f4038161cfcc9977f73d61ffe3.png)

Best regards  
Steffen

---

<div class="post-metadata">

### Author: ![Colin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/colin/32/17040_2.png) [@Colin](https://discourse.nodered.org/u/Colin)
#### Post date: [13 September 2022 07:29 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/6 "2022-09-13T07:29:19Z")

</div>

That is a very old version of node-red and not the latest node-red-dashboard. Are you able to upgrade?

---

<div class="post-metadata">

### Author: ![stgj](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stgj](https://discourse.nodered.org/u/stgj)
#### Post date: [13 September 2022 08:11 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/7 "2022-09-13T08:11:12Z")

</div>

I will do.  
And will get back to you.

Best regards  
Steffen

---

<div class="post-metadata">

### Author: ![stgj](https://avatars.discourse-cdn.com/v4/letter/s/e495f1/32.png) [@stgj](https://discourse.nodered.org/u/stgj)
#### Post date: [13 September 2022 08:57 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/8 "2022-09-13T08:57:13Z")

</div>

I updated Node-red to 3.0.2  
And Dashboard to 3.2.0

Not until I updated Nodejs to 18.9.0 that it now shows the correct value.

Thanks a bunch!

Best regards.  
Steffen

---

<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 September 2022 08:57 UTC](https://discourse.nodered.org/t/dashboard-notification-ok-cancel-dialog-with-input-wont-send-the-value-1/67592/9 "2022-09-27T08:57:15Z")

</div>

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