Forum Academy Marketplace Showcase Pricing Features

Saving List with Duplicate Entries: Possible?

Hi there,

I use a “list of users” as a browse history. The problem I am facing is that if I view the same user twice - and try to add that user to the list - it is not added as it is not possible to create duplicate entries in a list in bubble.

✓ User1
✓ User2
✓ User3
:x: User2 (is not added because it is already in the list)
✓ User4
:x: User1 (is not added because it is already in the list)

Now if I go back the “history” works as follows:
User5 - User4 - User3 - User2 - User1

Whereas it should be like this:
User1 - User5 - User4 - User2 - User3 - User2 - User1

Does anybody know how to achieve this?

Thanks in advance. :slight_smile:

Hi there, @maze… as you pointed out, you cannot have duplicate entries in a list. To the best of my knowledge, you can’t achieve your desired result unless you create a new data type that stores a view history. So, each time a user views another user, a thing is created in the new data type, and you construct a user’s view history by searching for things in that data type that were created by a particular user (you could also save those things as a list on the User data type, too, of course). With this setup in place, a user could view User2 as many times as they want, and because each one of those views is a separate thing in the data type, each item would show up separately in a user’s history.

Anyway, hope this helps, even if it’s just food for thought.