# Conditional Button (button only shows up under certain conditions)

**URL:** <https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251>\
**Category:** Feature Requests\
**Created:** [October 18, 2019, 2:08am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251 "2019-10-18T02:08:24Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![spencersRus](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/spencersrus/32/69_2.png) [@spencersRus](https://community.glideapps.com/u/spencersRus)\
**Post date:** [October 18, 2019, 2:08am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/1 "2019-10-18T02:08:24Z")

</div>

Is it possible for a button to show up only under certain conditions.

I have a mileage tracking app, and some days I forget to ‘complete’ the day.

I have an alert to tell if if there are any ‘unfinished’ days, so I will click the "finish mileage’ button.

I would like the button to disappear if I have 0 unfinished days.

here is what it looks like when there is ONE “unfinished” report waiting  
 ![one](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/0de1f9ff0359f7892b6791f068f26914a7ad01bd.png)

here is what it looks like whne NONE unfinished are waiting  
 ![zero](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b0dfe41e15fdeec17b542b84a65e2a2811c97897.png)

How do I get that button to disappear when there are ZERO unfinished.

---

<div class="post-metadata">

**Author:** ![George\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/george_b/32/534_2.png) [@George\_B](https://community.glideapps.com/u/George_B)\
**Post date:** [October 18, 2019, 2:46am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/2 "2019-10-18T02:46:39Z")

</div>

What happens when you click the button “finish mileage”? Does it bring up a form? Link you to another part of the program? In other words what is the action?

---

<div class="post-metadata">

**Author:** ![yinon\_raviv](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/yinon_raviv/32/1627_2.png) [@yinon\_raviv](https://community.glideapps.com/u/yinon_raviv)\
**Post date:** [October 18, 2019, 7:25am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/3 "2019-10-18T07:25:08Z")

</div>

I’m controlling buttons by using images as buttons and in the spreadsheet itself I set many IFs to controlq which button/image appear and when  
Hope this helps

---

<div class="post-metadata">

**Author:** ![Lighted\_Candle](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lighted_candle/32/29544_2.png) [@Lighted\_Candle](https://community.glideapps.com/u/Lighted_Candle)\
**Post date:** [October 18, 2019, 8:37am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/4 "2019-10-18T08:37:30Z")

</div>

Easiest option is to use the detail view along with the filter component. Create a filter that only shows the view if mileage is less than or greater than than a certain mileage

I know you asked to hide the button, but you can just hide the entire entry if no mileage needs to be entered, this will also hide the button.

Layout = detail view  
Filter = by mileage col =0  
I would add an inline reference to list all the completed days this way if the detailed view is empty the inline list will still show something productive.

Hope this helps

---

<div class="post-metadata">

**Author:** ![Muhammad\_iqbal](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/muhammad_iqbal/32/246_2.png) [@Muhammad\_iqbal](https://community.glideapps.com/u/Muhammad_iqbal)\
**Post date:** [October 18, 2019, 9:02pm UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/5 "2019-10-18T21:02:33Z")

</div>

It is possible use image link. Make image like a button then set use if function on sheet. If “unfinished” then “show.image.link”

---

<div class="post-metadata">

**Author:** ![Cisco\_Muratalla](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/cisco_muratalla/32/12358_2.png) [@Cisco\_Muratalla](https://community.glideapps.com/u/Cisco_Muratalla)\
**Post date:** [February 11, 2021, 1:10am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/6 "2021-02-11T01:10:54Z")

</div>

Appears current builder functionality addresses this request, topic archived.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [February 11, 2021, 2:05am UTC](https://community.glideapps.com/t/conditional-button-button-only-shows-up-under-certain-conditions/1251/7 "2021-02-11T02:05:08Z")

</div>


