# How to control a dashboard widget using ui\_control

**URL:** <https://discourse.nodered.org/t/how-to-control-a-dashboard-widget-using-ui-control/88147>\
**Category:** Dashboard\
**Tags:** node-red-dashboard, ui-widgets\
**Created:** [21 May 2024 13:12 UTC](https://discourse.nodered.org/t/how-to-control-a-dashboard-widget-using-ui-control/88147 "2024-05-21T13:12:27Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![CS012019](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/cs012019/32/91202_2.png) [@CS012019](https://discourse.nodered.org/u/CS012019)\
**Post date:** [21 May 2024 13:12 UTC](https://discourse.nodered.org/t/how-to-control-a-dashboard-widget-using-ui-control/88147/1 "2024-05-21T13:12:27Z")

</div>

Hi all.

Is it possible to control just one widget using ui\_control? I have two buttons in one group. I would like only one of these buttons to be displayed based on a boolean.

Thanks

---

<div class="post-metadata">

**Author:** ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)\
**Post date:** [21 May 2024 15:21 UTC](https://discourse.nodered.org/t/how-to-control-a-dashboard-widget-using-ui-control/88147/2 "2024-05-21T15:21:34Z")

</div>

If you put them in different groups it is possibe.

Or

You can use css to hide the switches

Read here [Hide - show a group element - #2 by E1cid](https://discourse.nodered.org/t/hide-show-a-group-element/85154/2)

---

<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:** [4 June 2024 15:21 UTC](https://discourse.nodered.org/t/how-to-control-a-dashboard-widget-using-ui-control/88147/3 "2024-06-04T15:21:54Z")

</div>

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