I am building a service marketplace platform, and I want provide users with a “compatibility percentage” based on interests. Multiple users are meant to purchase an item together, and therefore they need to know if the other users are a good fit. For example, I have created around 20 checkboxes which users can select, User A is looking to purchase an item that User B is also interested in. User A has checked 18/20 of the same checkboxes as User B and therefore share a compatibility of 90%.
I do not want User A to see the checkboxes User B has selected, and only show the “compatibility percentage” . How would I go about doing this? If anyone can recommend any videos that would be appreciated
Hi there, @enrique.barco96… one way I can think of to do what you have described involves a field on the User data type that stores a list that corresponds to a user’s selected checkboxes. If each user has such a list, it would be easy to assess the compatibility of two users by doing a count of the interest between their lists. For example, if the list field is called interests list, the expression would be User A's interests list intersect with User B's interest list:count / 20.
Any of that make sense? Hope it helps, even if it’s just food for thought.