# \[Solved\] Disabled a button changes it's background color

**URL:** <https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [June 23, 2019, 8:42am UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354 "2019-06-23T08:42:07Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [June 24, 2019, 1:09pm UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354/2 "2019-06-24T13:09:57Z")

</div>

You can use a true/false variable to only carry out the Button’s actions when it has been ‘enabled’ by you without changing the appearance of the Button.

> [@Is there a way to disable button WITHOUT shading to grey?](http://community.thunkable.com/t/is-there-a-way-to-disable-button-without-shading-to-grey/110296/2):
>
> You will evidently need a few more blocks, but not a ton. The idea is that, instead of disabling the button, you set a global variable, let’s call it “enable\_button” and set it by default to true. When the button needs disabling, you set that variable to false instead of actually disabling the button. Then in the button.click event block, you enclose ALL of the processing in a conditional block “if enable\_button do”. If the user clicks the button when enabled, which is the default, it works n…

---

_[View the full topic](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354)._
