# Button and socketid

**URL:** <https://discourse.nodered.org/t/button-and-socketid/63731>\
**Category:** Dashboard\
**Created:** [10 June 2022 14:32 UTC](https://discourse.nodered.org/t/button-and-socketid/63731 "2022-06-10T14:32:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Clouard-Dista](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/clouard-dista/32/55009_2.png) [@Clouard-Dista](https://discourse.nodered.org/u/Clouard-Dista)\
**Post date:** [10 June 2022 14:32 UTC](https://discourse.nodered.org/t/button-and-socketid/63731/1 "2022-06-10T14:32:56Z")

</div>

Hi in my house i made a dashboard to manage my different api and connected device, and i make multiple buton to enable or disable a template but the button sends the change at all sessions, do you have a solution for this change to be targeted on a single session, can you help me?

---

<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:** [10 June 2022 14:39 UTC](https://discourse.nodered.org/t/button-and-socketid/63731/2 "2022-06-10T14:39:15Z")

</div>

When you click a ui-button it should have a `msg.socketid` property. If this is maintained on your msg through the flow then any things sent to the dashboard should only go back to that socketid.

---

<div class="post-metadata">

**Author:** ![Clouard-Dista](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/clouard-dista/32/55009_2.png) [@Clouard-Dista](https://discourse.nodered.org/u/Clouard-Dista)\
**Post date:** [13 June 2022 10:15 UTC](https://discourse.nodered.org/t/button-and-socketid/63731/3 "2022-06-13T10:15:52Z")

</div>

Hi, sorry I didn't make myself understood, the problems (there are two):  
First the change triggered by the button applies to the template on all sessions despite the msg.socketid being good and well sent.  
Second, when I do that I want to temporarily disable the button only for the user who clicked, but disabling the button applies to all sessions.

---

<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:** [13 July 2022 10:16 UTC](https://discourse.nodered.org/t/button-and-socketid/63731/4 "2022-07-13T10:16:44Z")

</div>

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