I am having some trouble figuring out how to have items favorited by a user only show in their favorite list.
Below is an example of a sneaker that was favorited by a user 1(James Fox). If I switch over to a different user, it will still show the sneaker favorited by James.
What I am ultimately looking to accomplish is to only allow the sneakers favorited by a user to be viewed by them only.
I’ve played around with the visbility conditions as well as the row owner feature and got close but still couldnt quite figure it out. I favorited a sneaker for two different users and one did not see anything at all and the other user(James Fox) saw both even though he only favorited one.
How are you saving as a favorite? Are you just setting a boolean as checked or true? All you should need is a boolean column that is set as user specific. Then filter you collection to only show rows where the boolean is checked.
Thank you Jeff and Darren. That is exactly what I needed to do.
I have my favorites set up as a tab in the app with a work flow in place where every time a sneaker is favorited, it adds a row to the Favorite tab with all the details of the sneaker.
With boolean column now in place, it essentially took care of my issue. The only part I am figuring out now is ensuring the checkbox is automatically checked if favorited(Got caught with work stuff and havent dove in on it yet )
You won’t need a Favourites table, only a user-specific boolean column, a switch for that boolean, and for the Favourites list, just do a list of sneakers but filter it so favourites is checked