# How to alternatively change button's color

**URL:** https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820
**Category:** General
**Created:** [14 June 2018 20:27 UTC](https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820 "2018-06-14T20:27:49Z")
**Posts on this page:** 1
**Showing post:** 10

<div class="post-metadata">

### Author: ![zenofmud](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/zenofmud/32/316_2.png) [@zenofmud](https://discourse.nodered.org/u/zenofmud)
#### Post date: [16 June 2018 20:40 UTC](https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820/10 "2018-06-16T20:40:15Z")

</div>

Sure, you could have an inject node that runs once at startup that goes to an change node that sets msg.payload to GREEN and the change node feeds into the button node.

---

_[View the full topic](https://discourse.nodered.org/t/how-to-alternatively-change-buttons-color/820)._
