Saving a unique id into a user profile

Hello!

I try to achieve following:

  • Users can favorite an entry
  • This entry is shown on a special favorite-page

How I try to achieve this:

  • Whenever a users clicks on the icon in a repeatable group, the item id of the entry is written into a list in the user (favorite list with text fields)
  • Now I try to show a repeatable group with the entrys that have the unique id that are attached to the user profile

Is this the right way? Is there a better alternative?

Thanks in advance

Hey @dev2

I think I know what you are trying to accomplish, and for the longest time I did that exact same solution. However, once I figured it out, I facepalmed.

In your data set called “Users” you can create a new type, call it “Favorites,” and for the type, select “Item” (or whatever you called the thing you want to favorite), and click on 'This is a list". That can be seen here.

For this example, I am creating a sample website where a user can favorite different houses.
https://gyazo.com/61de2a65a34e6f058d2f37ebbb0840fe

Okay, great, Now we have a list of favorited items in that user’s data set, and can easily access what the favorited items are.

Does that make sense?

@draked123, thanks for your reply!

I believe I am currently doing the same. Here is my workflow:

image
I am adding the “Key”-Entry to the user list “favorites”.

image
Unfortunately this does not work. It won’t show any entry inside the favorite list.
Even if I do a simple check with :count, it does return zero.

I wonder what could be the problem. :frowning:
Any idea?

Edit: Found it. I had to set the default permission for the list.

Thanks for your help!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.