# How to active and deactive flow dashboard

**URL:** <https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630>\
**Category:** Dashboard\
**Created:** [13 February 2020 05:35 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630 "2020-02-13T05:35:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Artwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/artwin/32/16403_2.png) [@Artwin](https://discourse.nodered.org/u/Artwin)\
**Post date:** [13 February 2020 05:35 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/1 "2020-02-13T05:35:05Z")

</div>

Hi I'm Artwin, can you help me? I have a switch node (dashboard), when the switch is on it will bring up / activate the button and when the switch is off will eliminate / deactivate the button, is that possible? or is there another way? Thank you very much

 ![Switch 2](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/7/6/760f8057bb4a4076811da6d01dca14d9c1952444.jpeg) ![Switch](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/d/6/d6ee30c170eaa1111171b9dfff8c29af2c990242.jpeg)

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [13 February 2020 05:45 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/2 "2020-02-13T05:45:50Z")

</div>

Not really clear for me what exactly you like to achieve. but to activate or deactivate a ui-widget like a button you can send msg.enabled=true or false to this node. The widget will get a darker and desaturated color to show that it is disabled.  
So perhaps use a change node behind your switch:

- msg.enabled=msg.payload
- delete msg.payload (if necessary)

---

<div class="post-metadata">

**Author:** ![Artwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/artwin/32/16403_2.png) [@Artwin](https://discourse.nodered.org/u/Artwin)\
**Post date:** [13 February 2020 05:52 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/3 "2020-02-13T05:52:33Z")

</div>

simply when the switch (dashboard) is off, I can't press the flush button, and when the switch (dashboard) is on, I can press the flush button

![Switch 3](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/3X/1/2/1215dc86b4ed239e7e5ee760a935406a5505a791.jpeg)

---

<div class="post-metadata">

**Author:** ![Christian-Me](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/christian-me/32/10774_2.png) [@Christian-Me](https://discourse.nodered.org/u/Christian-Me)\
**Post date:** [13 February 2020 05:57 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/4 "2020-02-13T05:57:15Z")

</div>

See edit above.

---

<div class="post-metadata">

**Author:** ![Artwin](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/artwin/32/16403_2.png) [@Artwin](https://discourse.nodered.org/u/Artwin)\
**Post date:** [13 February 2020 06:07 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/5 "2020-02-13T06:07:15Z")

</div>

Its Work, thank you very much @Christian-Me

---

<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:** [27 February 2020 06:07 UTC](https://discourse.nodered.org/t/how-to-active-and-deactive-flow-dashboard/21630/6 "2020-02-27T06:07:16Z")

</div>

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