# Node-RED Admin UI: Display message to user?

**URL:** <https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290>\
**Category:** Developing Nodes\
**Created:** [16 June 2019 16:36 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290 "2019-06-16T16:36:09Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2019 16:36 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/1 "2019-06-16T16:36:09Z")

</div>

I'm sure I should know how to do this but I can't quite work it out and I haven't managed to successfully search for it.

Is there a way to display the "toast" type pop-up notification in the admin UI such as Node-RED itself produces from time to time?

 ![image](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/2X/9/948a90bf621e76c4403516fa193d2ca34ef01da6.png)

---

<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:** [16 June 2019 16:58 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/2 "2019-06-16T16:58:52Z")

</div>

Yup - `RED.notify('Your message here', options);`

`options.type` can be `success`, `warning` or `error` (or not specified for a neutral style).

There are other options, which aren't well documented, but if you're just doing a normal notification you should not need to worry about them.

> <https://github.com/node-red/node-red/blob/master/packages/node_modules/@node-red/editor-client/src/js/ui/notifications.js#L24>

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2019 19:12 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/3 "2019-06-16T19:12:53Z")

</div>

Thanks Nick. Just what I need.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2019 20:01 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/4 "2019-06-16T20:01:33Z")

</div>

I've pushed a new blog post with the info for reference. If you want me to do a PR on docs, let me know and I can add it.

Not sure how stable you think the definitions are though. I'm happy to add warnings if needs be.

> **[Creating a notification in the Admin UI](https://it.knightnet.org.uk/kb/nr-qa/notifying-admin)**
>
> Node-RED's admin UI has a built-in notification (toast) pop-up message feature.
> This article explains how to use it when creating custom nodes as it isn't currently well documented.

---

<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:** [16 June 2019 20:41 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/5 "2019-06-16T20:41:14Z")

</div>

I'd rather we updated the official documentation before you publish docs on that describe deprecated features that should not be used.

There are also undocumented issues with how some of those options interact.

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2019 20:45 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/6 "2019-06-16T20:45:44Z")

</div>

I will add a warning to the post. As I say, more than happy to update the official docs.

Also, if there is anything specific that shouldn't be used, please let me know.

---

<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:** [16 June 2019 20:48 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/7 "2019-06-16T20:48:03Z")

</div>

Please do not mention the multiple argument version of the function. That is deprecated.

The only form you should mention is:

```auto
RED.notify('Your message here', options);

```

---

<div class="post-metadata">

**Author:** ![TotallyInformation](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/totallyinformation/32/31_2.png) [@TotallyInformation](https://discourse.nodered.org/u/TotallyInformation)\
**Post date:** [16 June 2019 20:56 UTC](https://discourse.nodered.org/t/node-red-admin-ui-display-message-to-user/12290/8 "2019-06-16T20:56:48Z")

</div>

Cool, thanks. Will do.

Update pushed to blog.
