# Notification Node with Input sends "OK" if input value is "1"

**URL:** <https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936>\
**Category:** Dashboard\
**Created:** [9 December 2021 14:52 UTC](https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936 "2021-12-09T14:52:03Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Darwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/darwin/32/44600_2.png) [@Darwin](https://discourse.nodered.org/u/Darwin)\
**Post date:** [9 December 2021 14:52 UTC](https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936/1 "2021-12-09T14:52:03Z")

</div>

Hi there,

I am currently using Nodered Dashboard 2.19.4 and I noticed a strange behaviour on the notification node when it's mode is set to "OK/Cancel Dialog with Input".

The msg.payloud outcome of this node always contains what the user typed in as expected, except when the user typed "1" then the output on msg.payload is "OK".

I discovered that because I was using the input for password verification and "1" was a testpassword, that surprisingly never passed the password validation.

Can you confirm this issue? Is it already fixed in newer version?

Here are 3 Nodes to confirm:

```auto
[
    {
        "id": "4e5e3873.db1e38",
        "type": "inject",
        "z": "a11ab2f5.3aad",
        "name": "",
        "topic": "",
        "payload": "Enter Text",
        "payloadType": "str",
        "repeat": "",
        "crontab": "",
        "once": false,
        "onceDelay": 0.1,
        "x": 120,
        "y": 260,
        "wires": [
            [
                "1527884b.f51288"
            ]
        ]
    },
    {
        "id": "1527884b.f51288",
        "type": "ui_toast",
        "z": "a11ab2f5.3aad",
        "position": "prompt",
        "displayTime": "3",
        "highlight": "",
        "sendall": true,
        "outputs": 1,
        "ok": "OK",
        "cancel": "Cancel",
        "raw": false,
        "topic": "",
        "name": "",
        "x": 310,
        "y": 260,
        "wires": [
            [
                "c11e595d.df0ae8"
            ]
        ]
    },
    {
        "id": "c11e595d.df0ae8",
        "type": "debug",
        "z": "a11ab2f5.3aad",
        "name": "",
        "active": true,
        "tosidebar": true,
        "console": false,
        "tostatus": false,
        "complete": "false",
        "x": 510,
        "y": 260,
        "wires": []
    }
]

```

---

<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:** [9 December 2021 20:33 UTC](https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936/2 "2021-12-09T20:33:16Z")

</div>

I think it has been fixed in more recent versions.  
 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/9/1/914354f4897694354e87328c28a97125a39f6f51.png)

---

<div class="post-metadata">

**Author:** ![Darwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/darwin/32/44600_2.png) [@Darwin](https://discourse.nodered.org/u/Darwin)\
**Post date:** [14 December 2021 08:15 UTC](https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936/3 "2021-12-14T08:15:12Z")

</div>

Ok thanks for the info! Good to know it is fixed.

---

<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:** [13 January 2022 08:15 UTC](https://discourse.nodered.org/t/notification-node-with-input-sends-ok-if-input-value-is-1/54936/4 "2022-01-13T08:15:41Z")

</div>

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