# Visibility of component based on if there are any favorites

**URL:** <https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413>\
**Category:** Ask for Help\
**Created:** [July 22, 2021, 12:28am UTC](https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413 "2021-07-22T00:28:58Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Natalie\_Fruciano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/natalie_fruciano/32/25705_2.png) [@Natalie\_Fruciano](https://community.glideapps.com/u/Natalie_Fruciano)\
**Post date:** [July 22, 2021, 12:28am UTC](https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413/1 "2021-07-22T00:28:58Z")

</div>

Hello all! New here! 👋

I’m working on the Glide app built by @gannonatwork.

I was curious to play around with Glide and see if I could add a component that only shows data (in this case recipes) and a “View My Favorites” when the user has recipes favorited.

IE, when there’s at least 1 recipe favorited, a button to “View My Favorites” is visible.

My assumption was that I could use the Visibility option to control whether or not an Action Text Component shows up.

I applied a condition “Is Favorited is TRUE”, thinking that this would evaluate all rows for this user to see if any Is Favorited columns were true.

However, this does not seem to be the case. I’ve even tried other logic combos.

Can anyone advise on what the Visibility option is evaluating when I set a condition in this case?

Thanks!  
Natalie  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/1/11af6e0077fd124b5bc33bcac1150aa32e9a4fe2.png)  
 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/7/57a791dd059bbbd3db6eb8ca2e95cd7470cc3f13.png)

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [July 22, 2021, 12:36am UTC](https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413/2 "2021-07-22T00:36:24Z")

</div>

Don’t use visibility for this task, use filter and inline list components, to show items when favorite is true

---

<div class="post-metadata">

**Author:** ![Uzo](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/uzo/32/22639_2.png) [@Uzo](https://community.glideapps.com/u/Uzo)\
**Post date:** [July 22, 2021, 12:44am UTC](https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413/3 "2021-07-22T00:44:46Z")

</div>

For the button, visibility need to be based on rollup column that will count favorite column, and if count is more than 0… show button  
Or you can use logic if favorite column contains true

---

<div class="post-metadata">

**Author:** ![Natalie\_Fruciano](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/natalie_fruciano/32/25705_2.png) [@Natalie\_Fruciano](https://community.glideapps.com/u/Natalie_Fruciano)\
**Post date:** [July 23, 2021, 11:00pm UTC](https://community.glideapps.com/t/visibility-of-component-based-on-if-there-are-any-favorites/29413/4 "2021-07-23T23:00:52Z")

</div>

Thanks for your input @Uzo ! I’ll check that out.  
That’ll be new territory for me!
