# How To Add Users To Other's Favorites

**URL:** <https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409>\
**Category:** Ask for Help\
**Created:** [May 15, 2024, 4:30pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409 "2024-05-15T16:30:27Z")\
**Posts on this page:** 12\
**Page:** 1

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 15, 2024, 4:30pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/1 "2024-05-15T16:30:27Z")

</div>

How do I go about adding users(merchants) to other user’s favorite. It appears that the amount of information on this has shrink compared to a couple years ago and it seems that the Glide team hasn’t added a Favs components to Apps.

I’ve seen post saying to add a Boolean to the table but that doesn’t seem to work for multiple favorites.

Example, User decides to add Store A to their favorites. They see Store B and would like to added it to their favorites as well. This becomes a problem as Store A is replaced by Store B since it can only hold one.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 15, 2024, 5:00pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/2 "2024-05-15T17:00:36Z")

</div>

> [@MisteryInc](#):
>
> I’ve seen post saying to add a Boolean to the table but that doesn’t seem to work for multiple favorites.

Why not? If you add a user specific boolean column to the table of items you want a user to favorite, then a user can set any number of those items as a favorite, and it doesn’t interfere with other users. This is exactly how the old favorites feature used to work, which was nothing more than a user specific boolean column.

When displaying the favorites, it’s simply a matter of filtering the rows where the boolean is checked.

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 15, 2024, 6:07pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/3 "2024-05-15T18:07:03Z")

</div>

I think its best to show my progress

Here is the set up for the button

 ![Screenshot 2024-05-15 134158](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/4/b/4bc3e2132fa64df7663f656219f126252cee59b8.png)

 ![Screenshot 2024-05-15 134220](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/5/a57473a9ab4be86ade33a9a006c4d7742f181dbc.png)

Here is another store that I would like to add to my Favs but the space is already taken up by the first store. So its asking me if I would like to remove it instead

 ![Screenshot 2024-05-15 134457](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/4/c4b1bfb98668ceef2757756e71a4d84c5b5e4f6b.png)

In my table, you can see that the roll up is counting the number of Favs as two(there is only one) and its shared across all users instead of the specific user.

 ![Screenshot 2024-05-15 140050](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/f/af122aaf7851c7a65f9b1c93315fee6a9729b0f3.png)

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 15, 2024, 6:47pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/4 "2024-05-15T18:47:06Z")

</div>

Why are you setting a boolean value in your user profile instead of setting it in the Items table? Which table is your Rollup count looking at?

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 15, 2024, 7:27pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/5 "2024-05-15T19:27:21Z")

</div>

The reason is because I’m not trying to add products/items but Users that are listed as merchants.

The Favorites tab right next to it.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 15, 2024, 8:38pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/6 "2024-05-15T20:38:12Z")

</div>

I feel like there is a misunderstanding here. Let’s back up and start over. First explain your table structure and the purpose of each table. Then explain what exactly you are trying to favorite. I see a favorite button on an item detail screen, but you are saying you don’t want to favorite the item, but instead favorite the merchant that owns that item? What is “items” exactly? Is it merchants or products?

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 16, 2024, 11:30am UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/7 "2024-05-16T11:30:02Z")

</div>

So let’s ignore the items tables for now I think this won’t trip you up as much. Yeah lets just act like it doesn’t exist. This would makes things easier.

It appears that I cropped the tables out so it doesn’t show what table I’m on. My bad. The table I’m currently on is Users on the screenshot. Also, the detailed screen isn’t an item but a merchant/user. I’m trying to add their profile to a non-merchant users’ Favorites.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 16, 2024, 12:06pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/8 "2024-05-16T12:06:40Z")

</div>

I guess that still leads me to my original suggestion. It looks like you have a user specific boolean column in your user table. That’s good. Just set the boolean to true for the merchant user you want to favorite in the “This Item” row. Don’t set it in the user profile row. That is your personal row as the signed in user. Fix your action first to point to the correct row (This Item).

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 16, 2024, 2:10pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/9 "2024-05-16T14:10:28Z")

</div>

I’m lost at this point. Can you provide a table as example?

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [May 16, 2024, 2:55pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/10 "2024-05-16T14:55:59Z")

</div>

Why are you setting the boolean in the user profile row of the signed in user instead of the row of the merchant you are viewing? This is the part that should be changed?

 ![Screenshot_20240516-095355](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/1/3/13408eeed374c1778b70d491030f6775d3e6f347.png)

---

<div class="post-metadata">

**Author:** ![MisteryInc](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/misteryinc/32/75017_2.png) [@MisteryInc](https://community.glideapps.com/u/MisteryInc)\
**Post date:** [May 17, 2024, 7:34pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/11 "2024-05-17T19:34:46Z")

</div>

So, it worked! Guess I was over complicating it

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [May 24, 2024, 7:35pm UTC](https://community.glideapps.com/t/how-to-add-users-to-others-favorites/73409/12 "2024-05-24T19:35:36Z")

</div>

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