# Notification - Show dialog : Dynamic label for OK and Cancel buttons

**URL:** <https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713>\
**Category:** Dashboard\
**Created:** [4 February 2023 22:08 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713 "2023-02-04T22:08:21Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![olius](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@olius](https://discourse.nodered.org/u/olius)\
**Post date:** [4 February 2023 22:08 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/1 "2023-02-04T22:08:21Z")

</div>

Hi,

I'd like to set dynamically the labels of the OK and the Cancel buttons of a dashboard "show dialog" node (i.e. a notification node with OK/Cancel layout). I need that as I'm doing a multilingual dashboard, and I need to translate at least the word "Cancel" 😉

I've tried using {{msg.ok}} and {{msg.cancel}} in the according fields in the node configuration (see screen capture below), but they don't seem to be evaluated (I get "{{msg.ok}}" or "{{msg.cancel}}" in the output payload)...

![Capture d’écran 2023-02-04 230338](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/c/a/ca824046847c0002c2725b3a5d4985e5905f2eb1.png)

I also didn't see in the node help any information about a msg property to be used for this.

Is there any way to do it?

Thanks folks !

---

<div class="post-metadata">

**Author:** ![olius](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@olius](https://discourse.nodered.org/u/olius)\
**Post date:** [13 February 2023 19:30 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/2 "2023-02-13T19:30:12Z")

</div>

No one seems to be able to answer... Should I understand this can't be done ?

---

<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:** [13 February 2023 20:51 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/3 "2023-02-13T20:51:24Z")

</div>

Hi - currently that is correct... but not an unreasonable request... will make it happen.

---

<div class="post-metadata">

**Author:** ![olius](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@olius](https://discourse.nodered.org/u/olius)\
**Post date:** [13 February 2023 22:01 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/4 "2023-02-13T22:01:48Z")

</div>

Great, thanks a lot in advance!

Do you think it will take a long time to be implemented?

---

<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:** [13 February 2023 22:08 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/5 "2023-02-13T22:08:23Z")

</div>

Already in master branch on GitHub. ( not yet npm)

---

<div class="post-metadata">

**Author:** ![olius](https://avatars.discourse-cdn.com/v4/letter/o/71c47a/32.png) [@olius](https://discourse.nodered.org/u/olius)\
**Post date:** [13 February 2023 22:43 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/6 "2023-02-13T22:43:38Z")

</div>

Wow, that's fast! Thanks so much.

Now I'm gonna search how to update my release to get this on 😉

---

<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:** [15 March 2023 22:44 UTC](https://discourse.nodered.org/t/notification-show-dialog-dynamic-label-for-ok-and-cancel-buttons/74713/7 "2023-03-15T22:44:35Z")

</div>

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