"Are You Sure?" Pop-ups

Still may be useful though! Definitely don't wan't this to be accidentally triggered

(I think Paul means to look at his code in reply #1 - his first reply.)

1 Like

But post #2 does...
I then said;


I tried using the code from that example, it didn't seem to work. When you say

I'm not sure what that would look like in my context for the function node

I've pointed you in the right direction & included an example flow, but I don't intend to write the code for you...
Especially if you are developing a flow to shut down a fuel cell in a emergency situation, you need to be confident that it will work as intended.
The javascript in your function node falls well short, and a lot of work is needed for this to work as intended.

Good luck


I will do my best. Thanks for the help

1 Like
[{"id":"a081a6de.1050d8","type":"ui_switch","z":"4a6e169c.b17938","name":"Electrolyzer Kill Switch","label":"Electrolyzer Kill Switch","tooltip":"","group":"fb40af38.a5323","order":18,"width":"3","height":"1","passthru":false,"decouple":"true","topic":"","style":"","onvalue":"0","onvalueType":"num","onicon":"fa-2x fa-bolt","oncolor":"yellow","offvalue":"1","offvalueType":"str","officon":"fa-2x fa-power-off","offcolor":"gray","x":460,"y":560,"wires":[["17ca4c3e.bda904"]]},{"id":"fad54ede.a0757","type":"ui_toast","z":"4a6e169c.b17938","position":"dialog","displayTime":"3","highlight":"","sendall":true,"outputs":1,"ok":"OK","cancel":"Cancel","raw":false,"topic":"","name":"Deploy?","x":460,"y":640,"wires":[["e236a593.a05ce8"]]},{"id":"e236a593.a05ce8","type":"function","z":"4a6e169c.b17938","name":"Confirm","func":"//only accept OK msg's\nif (msg.payload == 'OK') {\n    msg.payload = msg.value;\n    node.send(msg);\n}\nreturn null;","outputs":1,"noerr":0,"x":620,"y":640,"wires":[["a081a6de.1050d8"]]},{"id":"17ca4c3e.bda904","type":"change","z":"4a6e169c.b17938","name":"","rules":[{"t":"set","p":"value","pt":"msg","to":"payload","tot":"msg"}],"action":"","property":"","from":"","to":"","reg":false,"x":280,"y":640,"wires":[["fad54ede.a0757"]]},{"id":"fb40af38.a5323","type":"ui_group","z":"","name":"Swtiches","tab":"35190788.171598","order":2,"disp":false,"width":"11","collapse":false},{"id":"35190788.171598","type":"ui_tab","z":"","name":"Hydrogen Liquifying Station","icon":"dashboard","order":1,"disabled":false,"hidden":false}]


Thank for this answer. Could you tell me how you create your own notification block? I would like to create un pop up block where we can write a text, maybe the notification with input. Could you tell where I could read something about that in order to understand how to create what you did? Thanks

The built in ui_notification node now has the ability to accept input if required.

Yes I know. I'm using the flow Paul Reed and as output as the block deploy, I need to know if the button "Stop" has been clicked or not. I know with the message. If I'm using the input from the dialog, how can I get the text written? Could we generate a second output with another message?