# Button Block behaving differently in Glide Pages

**URL:** https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877
**Category:** Ask for Help
**Tags:** actions
**Created:** [February 23, 2022, 10:10am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877 "2022-02-23T10:10:48Z")
**Posts on this page:** 9
**Page:** 1

<div class="post-metadata">

### Author: ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)
#### Post date: [February 23, 2022, 10:10am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/1 "2022-02-23T10:10:48Z")

</div>

In Glide Apps if I create an Action for one of the buttons, and in the action I start with a test (ex. is date lesser than today, the button will be greyed out if the condition is false.

In Glide Pages the button is just hidden when the condition is false.

Any suggestions as to why, or is there an easy work-around to just grey it out ?

Also the Background option for Button Blocks, described in the Glide documentation, doesn’t appear in my Editor view…

---

<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: [February 23, 2022, 12:25pm UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/2 "2022-02-23T12:25:26Z")

</div>

> [@Killko](#):
>
> In Glide Pages the button is just hidden when the condition is false.

I’m pretty sure greyed out buttons are available in titles. I think what you described is a default behaviour in button blocks.

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/6/86acc98ffae3ddeedc4c321fd4373c2cdbf14f20.png)

And yeah, the background option isn’t there…

---

<div class="post-metadata">

### Author: ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)
#### Post date: [February 23, 2022, 12:42pm UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/3 "2022-02-23T12:42:38Z")

</div>

Well yes in Titles, but I’m trying to add a Button Block (Validate / Cancel) at the bottom of a Custom Form. So when the fields are not completed correctly I’d like to grey out the Validate button.

I was doing that by testing if Ok in a Custom Action, but then the Validate button is just hidden if Not OK…

This however works perfectly fine in Glide Apps, where I have for ex. a Check-in / Check-Out button, and i can grey out either button, without hiding it…

---

<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: [February 23, 2022, 11:48pm UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/4 "2022-02-23T23:48:20Z")

</div>

Yeah, as I said, what you described is the default behaviour for button blocks.

---

<div class="post-metadata">

### Author: ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)
#### Post date: [February 24, 2022, 1:25am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/5 "2022-02-24T01:25:59Z")

</div>

I’m confused, are you agreeing with me ? 😅

I’m saying that button blocks on Glide Apps don’t behave the same way than button blocks on Glide Pages.

That is not consistent to me…

---

<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: [February 24, 2022, 1:28am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/6 "2022-02-24T01:28:29Z")

</div>

Yeah, I agree with your reports, but I don’t have the power to change that behaviour. 😅

---

<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 24, 2022, 3:00am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/7 "2022-02-24T03:00:56Z")

</div>

In Glide apps, you can create a conditional action for each button in the button bar. If the condition is not met, the button gets greyed out…however, if both button’s conditions are not met, the button bar vanishes altogether:  
 ![CleanShot 2022-02-23 at 22.00.04](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/8/083959667dbc9f60131a2aa58bf641380decf3d9.gif)

---

<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: [February 24, 2022, 4:03am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/8 "2022-02-24T04:03:20Z")

</div>

Yeah, I think the point that @Killko is making is that the button bar/block doesn’t behave in the same way in Pages, which is inconsistent with Apps.

---

<div class="post-metadata">

### Author: ![Killko](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/killko/32/39538_2.png) [@Killko](https://community.glideapps.com/u/Killko)
#### Post date: [February 24, 2022, 8:25am UTC](https://community.glideapps.com/t/button-block-behaving-differently-in-glide-pages/38877/9 "2022-02-24T08:25:43Z")

</div>

Yes I use that in Apps, but it doesn’t behave that way in Pages…
