# Button Visibility \[ Sometimes \]

**URL:** <https://forum.adalo.com/t/button-visibility-sometimes/18670>\
**Category:** Get Help\
**Created:** [October 19, 2021, 4:27pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670 "2021-10-19T16:27:03Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![dyankristoper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dyankristoper/32/12459_2.png) [@dyankristoper](https://forum.adalo.com/u/dyankristoper)\
**Post date:** [October 19, 2021, 4:27pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/1 "2021-10-19T16:27:03Z")

</div>

Hello Everyone,

I am trying to hide a button based on **counts** of two collections.

![Screenshot 2021-10-20 at 00.08.50](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/f/ffe71675a80cfb63c2034a53637c66a1a92135e4.png)  
 ![Screenshot 2021-10-20 at 00.05.10](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/9/95a2ec83874a6f83a2fab1924948afa4aa9cdc01.png)

On **screenshot 2** , the condition was set that the button SHOULD BE VISIBLE if both the counts are equal. But, on **screenshot 1** , the button still appears even though the condition is NOT SATISFIED.

Let me know if you experienced this issue and what steps have you undergone to solve it.

Thank you everyone!

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [October 19, 2021, 7:47pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/2 "2021-10-19T19:47:44Z")

</div>

Hi JC,

Could you take a screenshot of the filters of the database collection? Also, are you logged in as a user in the app?

---

<div class="post-metadata">

**Author:** ![dyankristoper](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dyankristoper/32/12459_2.png) [@dyankristoper](https://forum.adalo.com/u/dyankristoper)\
**Post date:** [October 28, 2021, 2:42pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/3 "2021-10-28T14:42:01Z")

</div>

Hello James,

Thanks for the reply. To answer your question, I am logged in as a user in the app.

For confidential reasons, I cannot share the DB collection and/or filters.

The image below shows the issue. I am trying to hide the “Mark as Done” button. The 2 counts are the “count” of 2 separate DB collections. My visibility condition is to show the button only if both counts are equal. Clearly, based on the screenshot, 1 and 0 are not equal but still, the button shows.

![Screenshot 2021-10-28 at 22.38.52](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/6/64491bd873a63a65a534a9b7283669c808a141d0.png)

---

<div class="post-metadata">

**Author:** ![James\_App\_Maker](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/james_app_maker/32/37288_2.png) [@James\_App\_Maker](https://forum.adalo.com/u/James_App_Maker)\
**Post date:** [October 28, 2021, 2:57pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/4 "2021-10-28T14:57:47Z")

</div>

Do you mean something like this?

Click on the “sometimes visible button” to see it.

> **[Adalo Forum Help](https://previewer.adalo.com/bfb4948d-8e87-4ce0-8bb5-028948277a22)**
>
> Built with Adalo

---

<div class="post-metadata">

**Author:** ![Dilon](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/dilon/32/39815_2.png) [@Dilon](https://forum.adalo.com/u/Dilon)\
**Post date:** [October 28, 2021, 3:08pm UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/5 "2021-10-28T15:08:21Z")

</div>

I added a visibility condition to a button and it worked.

The Condition.

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/3/3d944dc3f0504d61570cdb898f4e05766f1fe6ff.png)

The button with the screen.

![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/0/0d85b2a81064f40f1a3f346d0b18274438f5b5f3.png)

And when I preview it.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/adalo/original/2X/a/af346b198b1be2911e3485aef2bc606795919672.png)

It doesn’t shows the button because of the visibility condition. The all users count is 5 and skills count is 10. So no equal between that numbers.

Thank you

---

<div class="post-metadata">

**Author:** ![Yongki](https://avatars.discourse-cdn.com/v4/letter/y/7c8e57/32.png) [@Yongki](https://forum.adalo.com/u/Yongki)\
**Post date:** [October 29, 2021, 6:29am UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/6 "2021-10-29T06:29:22Z")

</div>

As an additional idea, you might want to store the count in users collection first and then later compare it.

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.adalo.com/system/32/40401_2.png) [@system](https://forum.adalo.com/u/system)\
**Post date:** [November 8, 2021, 6:29am UTC](https://forum.adalo.com/t/button-visibility-sometimes/18670/7 "2021-11-08T06:29:35Z")

</div>

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.
