# Can I conditionally disable / gray-out a button?

**URL:** https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838
**Category:** Ask for Help
**Created:** [May 16, 2021, 12:29am UTC](https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838 "2021-05-16T00:29:22Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Jason\_Fisher](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jason_fisher/32/22996_2.png) [@Jason\_Fisher](https://community.glideapps.com/u/Jason_Fisher)
#### Post date: [May 16, 2021, 12:29am UTC](https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838/1 "2021-05-16T00:29:22Z")

</div>

It’s easy to hide a button but I want it to show as clearly disabled until a user fills out, say, certain fields, then the button can be clicked. I want the user to know there is a disabled button all along, not just reveal it to them once it is enabled.

This is such a common feature that I’m hoping Glide has a way to do it, but I just haven’t found it yet.

---

<div class="post-metadata">

### Author: ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)
#### Post date: [May 16, 2021, 12:37am UTC](https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838/2 "2021-05-16T00:37:39Z")

</div>

You can have two different buttons:

- 1 greyed-out button that shows only when certain fields are empty, the action would be showing a notification like “Please fill all required fields!”.

- 1 clickable button that shows only when those fields are all not empty.

---

<div class="post-metadata">

### Author: ![Jason\_Fisher](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jason_fisher/32/22996_2.png) [@Jason\_Fisher](https://community.glideapps.com/u/Jason_Fisher)
#### Post date: [May 17, 2021, 6:50pm UTC](https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838/3 "2021-05-17T18:50:08Z")

</div>

Thanks. I figured that could be the solution, but haven’t located a gray button icon/image/component to use for this purpose.

Does anybody know where to find a grayed out button to use in Glide?

---

<div class="post-metadata">

### Author: ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)
#### Post date: [May 17, 2021, 6:58pm UTC](https://community.glideapps.com/t/can-i-conditionally-disable-gray-out-a-button/26838/4 "2021-05-17T18:58:08Z")

</div>

Many people will just alternate the built in buttons between a ‘Filled’ and ‘Transparent’ or ‘Bordered’ style.
