# Favorite button not working?

**URL:** <https://community.glideapps.com/t/favorite-button-not-working/57529>\
**Category:** Ask for Help\
**Created:** [February 5, 2023, 6:54pm UTC](https://community.glideapps.com/t/favorite-button-not-working/57529 "2023-02-05T18:54:45Z")\
**Posts on this page:** 17\
**Page:** 1

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 5, 2023, 6:54pm UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/1 "2023-02-05T18:54:45Z")

</div>

Hello,  
So I’ve added the favorite bar on my app so users can give a little heart and “favorite” certain items. The first initial Favorite items seems to be working but they don’t all work throughout the app. I’m I not using it correctly? I think I have a column named as “Is favorite?” with type “boolean”…is this correct? I added content “favorite” also but it seems like the name of the label is “favorite”?  
I’m new to Glide and creating apps but can’t seem to figure this one out!

---

<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 6, 2023, 12:10am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/3 "2023-02-06T00:10:14Z")

</div>

Can you specify on what “doesn’t work throughout the app”? Can you add some screenshots?

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 12:48am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/4 "2023-02-06T00:48:31Z")

</div>

Thank you for your reply. Well, I did notice I can’t add a “Favorite Bar” under components on this screen. Where I can use the favorite button, I have a “Favorite Bar” which allows me to see my favorites on that screen. Is it the way I have it set up perhaps? I know I’m doing something incorrectly on the sections that I can’t favorite items.

---

<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 6, 2023, 12:58am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/5 "2023-02-06T00:58:04Z")

</div>

Are you using a details layout for your screen or a non-details screen? I believe you can only have a favorite bar in a non-details screen.

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 1:02am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/6 "2023-02-06T01:02:23Z")

</div>

This is the screen where favorite works…

 ![Screenshot 2023-02-05 at 7.00.52 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/8/c/8cf4f6f6368e560a14fc6d6a7a5a840faf0f8267.jpeg)

This is the screen where my favorites are not showing up…

 ![Screenshot 2023-02-05 at 7.01.09 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/d/1/d1f22237411d92209dfd6fc6a98318f90b219ee3.jpeg)

I’m guessing it’s because I can’t add the “Favorite Bar” for this layout?

---

<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 6, 2023, 1:29am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/7 "2023-02-06T01:29:21Z")

</div>

> [@ArtzyDog](#):
>
> I’m guessing it’s because I can’t add the “Favorite Bar” for this layout?

Yes, your second example is a details screen that is just showing the data for a single item in your list.  
A favourites bar is a filtering mechanism, and would make no sense in that context, because filtering a list of one item is a bit meaningless.  
Maybe what you want on that screen is a Favourite Button?  
That would allow your users to add the current item to their favourites.

![Screen Shot 2023-02-06 at 9.28.07 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/2/52c9320c3f855bdebf4a47f691401911264410ef.png)

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 1:31am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/8 "2023-02-06T01:31:28Z")

</div>

I did try that but it won’t appear anywhere indicating that they’ve favorite that item? I’m able to click on the favorite button and it does turn red as being selected but then, nowhere to be found as a favorite item?

---

<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 6, 2023, 1:34am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/9 "2023-02-06T01:34:24Z")

</div>

If you go back to the first screen where you have the favourites bar, then click on Favourites, does it not then filter the list below to show only items that have been favourited?

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 1:35am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/10 "2023-02-06T01:35:58Z")

</div>

Only the ones on that screen. If any other favorites work, it’s only for that particular screen. The favorite that don’t show, just don’t show up anywhere…if that makes any sense?

---

<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 6, 2023, 1:38am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/11 "2023-02-06T01:38:59Z")

</div>

> [@ArtzyDog](#):
>
> if that makes any sense?

um, no. Not really 🙂

Can you show me a screen shot of somewhere you would expect to see them but you aren’t?

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 1:46am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/12 "2023-02-06T01:46:54Z")

</div>

In this screen, I can select favorite and find it under the favorite…

 ![Screenshot 2023-02-05 at 7.44.37 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/b/0bc8abc7e36c623ea38bece171936a347b293338.jpeg)

Like this…

 ![Screenshot 2023-02-05 at 7.43.35 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/0/0/001d8f815798edd8a820973c2e68f2452f70aaba.jpeg)

In this screen, even if I hit the favorite button, is nowhere to be found…

 ![Screenshot 2023-02-05 at 7.46.29 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/5/c/5cc119f4f024c524d88df14f6424b1fa7a579206.jpeg)

---

<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 6, 2023, 1:51am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/13 "2023-02-06T01:51:13Z")

</div>

> [@ArtzyDog](#):
>
> is nowhere to be found…

this is the bit that’s confusing me.  
What are you expecting to happen (or see) when you tap the favourite (heart) on that screen?

The favourite component is just like a toggle. It adds or removes the item you are viewing to/from your list of favourites. If the heart is filled, it’s on your favourites list. If it’s not filled, then it isn’t. There is really nothing else to see.

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 1:55am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/14 "2023-02-06T01:55:29Z")

</div>

Maybe I’m confused, I thought that if an item is favorite (it appears on the favorite tab) so you can find it easier to find later without having to search through all the other items. On this particular screen, I see the heart filled because I favorite but I have no way of knowing unless I scroll through all the items again?

---

<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 6, 2023, 2:01am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/15 "2023-02-06T02:01:17Z")

</div>

> [@ArtzyDog](#):
>
> Maybe I’m confused, I thought that if an item is favorite (it appears on the favorite tab) so you can find it easier to find later without having to search through all the other items.

Yes, that’s the way it should work.

> [@ArtzyDog](#):
>
> but I have no way of knowing unless I scroll through all the items again?

This doesn’t sound right.

Just going back to your earlier screen shots. The first two you gave were from your Home tab, and the 3rd was taken from your Categories tab. Can you show me what you see when you click on the back button below…

 ![Screen Shot 2023-02-06 at 9.58.20 AM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/a/1a9ca741172b0ce79711a02c0c9d4a7fdeda2260.jpeg)

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 2:05am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/16 "2023-02-06T02:05:35Z")

</div>

This is my screen when I hit the back button…

 ![Screenshot 2023-02-05 at 8.04.55 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/a/caaa230529baed59a54710751d79a46a5bfa4099.jpeg)

---

<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 6, 2023, 2:11am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/17 "2023-02-06T02:11:20Z")

</div>

ah, okay. Now it makes sense 🙂  
The above is a details screen, and you can’t have a favourites bar on a details screen.

So you need to get a little bit creative.  
A simple solution might be to group the inline list by the “Is Favourited?” column. You can do that in the inline list options. I’ve never actually tried that, so I’m not sure how well it will work. But give that a try first.

If that doesn’t work for you, then the next option would be custom filtering. I won’t bother explaining that now unless we actually need it 🙂

---

<div class="post-metadata">

**Author:** ![ArtzyDog](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/artzydog/32/53747_2.png) [@ArtzyDog](https://community.glideapps.com/u/ArtzyDog)\
**Post date:** [February 6, 2023, 2:13am UTC](https://community.glideapps.com/t/favorite-button-not-working/57529/18 "2023-02-06T02:13:16Z")

</div>

I really appreciate all of your help. I will definitely let you know if I really want to add it. I just thought it was as simple as adding the favorite button 🤣
