# Is there a way to disable button WITHOUT shading to grey?

**URL:** <https://community.thunkable.com/t/is-there-a-way-to-disable-button-without-shading-to-grey/110296>\
**Category:** Questions about Thunkable X\
**Created:** [June 18, 2019, 12:53am UTC](https://community.thunkable.com/t/is-there-a-way-to-disable-button-without-shading-to-grey/110296 "2019-06-18T00:53:08Z")\
**Posts on this page:** 1\
**Showing post:** 2

<div class="post-metadata">

**Author:** ![CBVG](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/cbvg/32/32401_2.png) [@CBVG](https://community.thunkable.com/u/CBVG)\
**Post date:** [June 18, 2019, 1:40am UTC](https://community.thunkable.com/t/is-there-a-way-to-disable-button-without-shading-to-grey/110296/2 "2019-06-18T01:40:49Z")

</div>

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 normally. But when “enable\_button” is false, then the logic skips everything that the button would be doing, so is effectively defeated. You still can click it, but there will be zero effect.  
Until “enable\_button” is returned to true.

---

_[View the full topic](https://community.thunkable.com/t/is-there-a-way-to-disable-button-without-shading-to-grey/110296)._
