# Trying to add confirm popup

**URL:** <https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260>\
**Category:** Developing Nodes\
**Created:** [8 March 2021 11:48 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260 "2021-03-08T11:48:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![sander76](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sander76/32/35508_2.png) [@sander76](https://discourse.nodered.org/u/sander76)\
**Post date:** [8 March 2021 11:48 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/1 "2021-03-08T11:48:48Z")

</div>

I have a node which will start a loop on incoming `msg.payload="start"`  
But before actually starting I'd like a popup to appear asking whether the user is sure.

I've tried "confirm" but that apparently doesn't work as the javascript code runs in node-js. Not in the browser.

Anyone any suggestions ?

Thanks !  
Sander.

---

<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:** [8 March 2021 12:09 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/2 "2021-03-08T12:09:03Z")

</div>

Have a look at the Notification ui node

---

<div class="post-metadata">

**Author:** ![sander76](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sander76/32/35508_2.png) [@sander76](https://discourse.nodered.org/u/sander76)\
**Post date:** [8 March 2021 12:33 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/3 "2021-03-08T12:33:04Z")

</div>

Can you explain a bit more what you mean? I don't know where to look for the "Notification ui node" (and I did look)

---

<div class="post-metadata">

**Author:** ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)\
**Post date:** [8 March 2021 12:58 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/4 "2021-03-08T12:58:11Z")

</div>

Hi @sander76

Flows run in the node.js runtime, entirely independently of whether someone has the editor open in a browser window. The editor is not meant to be a user dashboard for the flows.

If you are trying to create a node that has this confirmation step built into it, that anyone could install and use - you cannot rely on what UI that user has available to them to act on the confirmation.

If you are trying to build a confirmation step into a set of flows you are running, then you can look at things like Node-RED Dashboard to create a user interface for your flows - which is where the notification node Colin mentions would come in.

---

<div class="post-metadata">

**Author:** ![sander76](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/sander76/32/35508_2.png) [@sander76](https://discourse.nodered.org/u/sander76)\
**Post date:** [8 March 2021 13:00 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/5 "2021-03-08T13:00:20Z")

</div>

Alright. Thanks for the detailed explanation!

---

<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:** [7 May 2021 13:00 UTC](https://discourse.nodered.org/t/trying-to-add-confirm-popup/42260/6 "2021-05-07T13:00:24Z")

</div>

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