# How to disable button

**URL:** <https://community.glideapps.com/t/how-to-disable-button/32145>\
**Category:** Ask for Help\
**Created:** [September 22, 2021, 1:16pm UTC](https://community.glideapps.com/t/how-to-disable-button/32145 "2021-09-22T13:16:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![sachin\_jangir](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/sachin_jangir/32/30919_2.png) [@sachin\_jangir](https://community.glideapps.com/u/sachin_jangir)\
**Post date:** [September 22, 2021, 1:16pm UTC](https://community.glideapps.com/t/how-to-disable-button/32145/1 "2021-09-22T13:16:17Z")

</div>

how to disable button when certain condition is false like i want disable my button when my value is negative in GSbackend and enable when it is positive

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [September 22, 2021, 1:19pm UTC](https://community.glideapps.com/t/how-to-disable-button/32145/2 "2021-09-22T13:19:29Z")

</div>

Use a custom action with a condition.  
If condition is met → do action  
If condition is not met → do nothing, or maybe show a notification

An alternative is to use a visibility setting to hide the button when a condition is true/not true.

---

<div class="post-metadata">

**Author:** ![Teentaal\_l](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/teentaal_l/32/32745_2.png) [@Teentaal\_l](https://community.glideapps.com/u/Teentaal_l)\
**Post date:** [April 6, 2022, 1:22pm UTC](https://community.glideapps.com/t/how-to-disable-button/32145/3 "2022-04-06T13:22:38Z")

</div>

Hi Darren,  
Could you please explain this with an example and steps. Here is my scenario, clients wants to disable the button once it’s clicked.

Is the Member Eligible?  
Yes No (Button Bar)

If the user clicks on Yes, the button bar is disabled.

Looking forward to your help.

regards,  
Santosh

---

<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:** [April 7, 2022, 12:41am UTC](https://community.glideapps.com/t/how-to-disable-button/32145/4 "2022-04-07T00:41:45Z")

</div>

Then you should construct a custom action on the “Yes” side.

On the condition level, it should be “If member eligible” is not Yes then add all actions you need below that.

Once you click Yes, that side of the button bar will be disabled since it does not fulfill the condition.

---

<div class="post-metadata">

**Author:** ![MattLB](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mattlb/32/41284_2.png) [@MattLB](https://community.glideapps.com/u/MattLB)\
**Post date:** [April 18, 2022, 3:07pm UTC](https://community.glideapps.com/t/how-to-disable-button/32145/5 "2022-04-18T15:07:38Z")

</div>

You usually associated actions with a ‘left action’ and not changing the display characteristics of the button - it is a very obscure side-effect for an “action” button.

Thank you very much for explaining - this was nowhere found in the docs for the Custom Form demo.
