# Show dialog node

**URL:** https://discourse.nodered.org/t/show-dialog-node/20497
**Category:** Dashboard
**Created:** [17 January 2020 12:03 UTC](https://discourse.nodered.org/t/show-dialog-node/20497 "2020-01-17T12:03:14Z")
**Posts on this page:** 10
**Page:** 1

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:03 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/1 "2020-01-17T12:03:14Z")

</div>

Hi all,

I recently did a fresh install of node red and dashboard. The 'Show Dialog' node seems to be missing.  
The weird thing is, I imported a flow that I had from the previous version of dashboard which has a 'Show Dialog' node and it works (almost, see next question) even though it's not available from the node selection on the left. Any ideas why this may be?

I am using the 'Show Dialog' node to give the user an option to confirm if they want to change settings. But if I press OK or CANCEL the payload still gets sent. Any ideas why this may be happening?

Many thanks

---

<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: [17 January 2020 12:21 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/2 "2020-01-17T12:21:42Z")

</div>

Is that now (or perhaps always was) the Notification node?  
If it is then the Cancel button should send a payload containing whatever label you have defined for the Cancel button.

---

<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: [17 January 2020 12:30 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/3 "2020-01-17T12:30:59Z")

</div>

If you post the flow you imported (please [read this before posting the flow](https://discourse.nodered.org/t/how-to-share-code-or-flow-json/506)), we might be able to determing the actual node it is using

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:39 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/4 "2020-01-17T12:39:04Z")

</div>

> [{"id":"219cd04d.1085d","type":"ui\_button","z":"87331cb3.aef4c","name":"","group":"f4e9d720.7ccd58","order":1,"width":0,"height":0,"passthru":false,"label":"Set wired network to DHCP","tooltip":"","color":"","bgcolor":"","icon":"","payload":"-","payloadType":"str","topic":"","x":220,"y":480,"wires":[["eea96657.84b618"]]},{"id":"5c486c4f.057cb4","type":"exec","z":"87331cb3.aef4c","command":"sudo nmcli con up ClockWiredDHCP","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":790,"y":480,"wires":[,,]},{"id":"eea96657.84b618","type":"ui\_toast","z":"87331cb3.aef4c","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"GO BACK","raw":false,"topic":"Are you sure you want to change network settings to DHCP?","name":"","x":490,"y":480,"wires":[["5c486c4f.057cb4"]]},{"id":"f4e9d720.7ccd58","type":"ui\_group","z":"","name":"Wired network connection settings","tab":"4d170cf6.0833f4","disp":true,"width":"9","collapse":false},{"id":"4d170cf6.0833f4","type":"ui\_tab","z":"","name":"Network","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:39 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/5 "2020-01-17T12:39:25Z")

</div>

Sorry, Ill try that agin

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:44 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/8 "2020-01-17T12:44:58Z")

</div>

```auto
[{"id":"219cd04d.1085d","type":"ui_button","z":"87331cb3.aef4c","name":"","group":"f4e9d720.7ccd58","order":1,"width":0,"height":0,"passthru":false,"label":"Set wired network to DHCP","tooltip":"","color":"","bgcolor":"","icon":"","payload":"-","payloadType":"str","topic":"","x":220,"y":480,"wires":[["eea96657.84b618"]]},{"id":"5c486c4f.057cb4","type":"exec","z":"87331cb3.aef4c","command":"sudo nmcli con up ClockWiredDHCP","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"","x":790,"y":480,"wires":[[],[],[]]},{"id":"eea96657.84b618","type":"ui_toast","z":"87331cb3.aef4c","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"GO BACK","raw":false,"topic":"Are you sure you want to change network settings to DHCP?","name":"","x":490,"y":480,"wires":[["5c486c4f.057cb4"]]},{"id":"f4e9d720.7ccd58","type":"ui_group","z":"","name":"Wired network connection settings","tab":"4d170cf6.0833f4","disp":true,"width":"9","collapse":false},{"id":"4d170cf6.0833f4","type":"ui_tab","z":"","name":"Network","icon":"dashboard","order":4,"disabled":false,"hidden":false}]

```

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:47 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/9 "2020-01-17T12:47:08Z")

</div>

@Colin The notification node only has an input while the Show Dialog node has an input and output.

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 12:50 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/10 "2020-01-17T12:50:03Z")

</div>

It is the notification node. I just hadn't selected the Show Dialog option in the node settings.  
Still confused why it's passing the command when pressing cancel (or 'go back')

---

<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: [17 January 2020 13:26 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/11 "2020-01-17T13:26:58Z")

</div>

Ok, you have a node in the flow that looks like it came from `node-red-contrib-mdashboard`. If you don't have `node-red-contrib-mdashboard` I assume you made the export when you did have it installed.

One of it's nodes was ui\_toast which

> Shows `msg.payload` as a popup notification or OK / Cancel dialog  
> message on the user interface.

That is why it is missing. You can remove that node from the flow and use the dashboard `notification` node or try something like `node-red-contrib-sysmessage` in its place.

---

<div class="post-metadata">

### Author: ![Ant422](https://avatars.discourse-cdn.com/v4/letter/a/fbc32d/32.png) [@Ant422](https://discourse.nodered.org/u/Ant422)
#### Post date: [17 January 2020 14:33 UTC](https://discourse.nodered.org/t/show-dialog-node/20497/12 "2020-01-17T14:33:18Z")

</div>

Thank you for your reply. I used the notification node with a switch node after it that passes OK and blocks CANCEL. Works perfectly.

Thanks for the help!!
