# \[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:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Hayder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hayder/32/153829_2.png) [@Hayder](https://community.thunkable.com/u/Hayder)\
**Post date:** [June 23, 2019, 8:42am UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354/1 "2019-06-23T08:42:07Z")

</div>

Hello Thunkable,  
In quiz apps we do need to “Disabled” some choices buttons so the users cannot press them more than one time in the same question and we make the background of the wrong choices “red” but I found out that when disabled the button, its background will be changed to almost grey.  
I ask you to fix this bug and let Thunkers control the color.  
We want to disabled the button but keep the same background color that we set to it.  
My regards!

---

<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…

---

<div class="post-metadata">

**Author:** ![Hayder](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/hayder/32/153829_2.png) [@Hayder](https://community.thunkable.com/u/Hayder)\
**Post date:** [June 25, 2019, 6:30am UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354/3 "2019-06-25T06:30:51Z")

</div>

Thank you so much Jane! You’ve been a great active helper.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [October 24, 2022, 5:18pm UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354/4 "2022-10-24T17:18:18Z")

</div>

A post was split to a new topic: [Making a button “unclickable”](https://community.thunkable.com/t/making-a-button-unclickable/2096783)

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 12:13pm UTC](https://community.thunkable.com/t/solved-disabled-a-button-changes-its-background-color/117354/5 "2024-11-08T12:13:18Z")

</div>


