# Can I dynamically change the background color of a switch?

**URL:** <https://discourse.nodered.org/t/can-i-dynamically-change-the-background-color-of-a-switch/9886>\
**Category:** Dashboard\
**Created:** [8 April 2019 03:07 UTC](https://discourse.nodered.org/t/can-i-dynamically-change-the-background-color-of-a-switch/9886 "2019-04-08T03:07:05Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![bakman2](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/bakman2/32/6207_2.png) [@bakman2](https://discourse.nodered.org/u/bakman2)\
**Post date:** [8 April 2019 04:05 UTC](https://discourse.nodered.org/t/can-i-dynamically-change-the-background-color-of-a-switch/9886/2 "2019-04-08T04:05:25Z")

</div>

Are you referring to `node-red-dashboard` ?  
Yes there is a way. You can use the template node.

You can read some hints here

> [@Output two attributes in the template](https://discourse.nodered.org/t/output-two-attributes-in-the-template/5983/11):
>
> That do not work, but thanks for your help grinning

---

_[View the full topic](https://discourse.nodered.org/t/can-i-dynamically-change-the-background-color-of-a-switch/9886)._
