# Assistance required - Dashboard Dynamic button that can Appear/Disapear on true or false variable

**URL:** <https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608>\
**Category:** Dashboard\
**Tags:** node-red-dashboard\
**Created:** [12 September 2022 11:43 UTC](https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608 "2022-09-12T11:43:50Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@Wayne](https://discourse.nodered.org/u/Wayne)\
**Post date:** [12 September 2022 11:43 UTC](https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608/1 "2022-09-12T11:43:50Z")

</div>

Hi NodeRed guru's,  
Really love this project.  
Hopefully this is a simple thing but ultimately what I am after is a dashboard button that will appear when for example a scheduled flow runs (for example a reminder) and only disappear when pressed which makes a variable false. Ultimately I am trying to generate a flow that will trigger a scheduled reminder but then keep announcing every 10mins until a person taps the now present button when reminder item has been completed. The schedule portion is all good and I can sus the if not pressed but I can figure how to appear/disappear the button.  
The only way I could think of doing this was to enable/disable button node but i can find a mechanism to automate this as this would make for a clean dashboard when all items are actioned.  
Any suggestions would be greatly appreciated.

Thanks in advance  
Wayne

---

<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:** [12 September 2022 12:00 UTC](https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608/2 "2022-09-12T12:00:24Z")

</div>

You can put the button in its own ui group then use ui-control node to show/hide disable/enable the group, all is explained in the node info help text.  
Or

You can use ui-template node to create a button and use ng-if to show or hide on true/false. I recently posted an example in this thread. [Add text to ui template based on javascrip function - #6 by E1cid](https://discourse.nodered.org/t/add-text-to-ui-template-based-on-javascrip-function/67526/6)

---

<div class="post-metadata">

**Author:** ![Wayne](https://avatars.discourse-cdn.com/v4/letter/w/0ea827/32.png) [@Wayne](https://discourse.nodered.org/u/Wayne)\
**Post date:** [12 September 2022 14:44 UTC](https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608/3 "2022-09-12T14:44:50Z")

</div>

> [@E1cid](#):
>
> ui-control node

That was perfect, UI-control and turning off button in its own group.

Thanks heaps

---

<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:** [26 September 2022 14:45 UTC](https://discourse.nodered.org/t/assistance-required-dashboard-dynamic-button-that-can-appear-disapear-on-true-or-false-variable/67608/4 "2022-09-26T14:45:13Z")

</div>

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