Hi,
I have an issue with the toggles I use on my product pages to favorite them.
When clicking on the toggle, the product page is saved as fav, however, if I quit the page and come back on it, the toggle is inactive. I tried everything (I guess?): putting the toggle into a list, creating some visibility conditions and so on, but nothing is working.
Am I missing something?
Thanks for the quick answer @dilon_perera
Yes I record the user’s favorite so that he can find them on his favorite screen. But maybe I did it wrong?
And here is a screenshot of the places collection :
At first there wasn’t any relationship between places and favorites. I created one as I was experimenting different things to make the active toggle work but it didn’t change anything.
If you do this in that way you need two icons to show that it’s toggled on and off. This way is easy! : How to Create a Favorite Button - YouTube It’s with a many to many relationship between the Users collection and the Places collection.
You need to select current place > users ( many to many relationship ) > all > contains > logged in user. Also you can connect this many to many relationship property directly to the toggle too!
I just played with actions and it seems to work now!
Just have an issue with my favorite screen now but I guess I’ll make another post if I can’t figure it out.
Thank you so much for your help @dilon_perera!
Since it’s about the favorites you can post it here too and the community is here to help you
Also if you can’t figure it out you can give access to that app for this email ( pereradilon24@gmail.com ) and I’ll check that and post the answer here!
( Open the app in the editor > setting icon on the left side > app access section > add the email )
Thank you so much, it has been so helpful.
My issue with the favorite screen is that when the favorited item is removed from the list, the toggle stays active on the product page. On the other hand, if I unfav the product, it still appears on the favorited screen (which is weird as it used to work )
I’ll give you access if you wanna check (just note that I duplicated product pages so that the user can access it when clicking from the favorite screen (Favorited product page), but here I am talking about the first Product page).
Awesome! Your welcome! Now you can remove my email from the app access section.
The problem was you was using two icons so I just removed them and added only a toggle and connected it to the many to many relationship property. And also I added this to other ones too! ( Highlights, Experiences,… )