Hi,
I’m setting up an upvote based RG sorting.
I have set up an icon, when clicked the parent group elements upvote will be +1. The default upvote value is 1. The problem is users can keep clicking on it & upvoting it as many times.
How do I restict an user to just 1 upvote? Please help
You can do it a few ways, but one way that comes to mind is to keep a list of upvotes from the user in his user database. Then it would need to verify they he hasn’t already upvoted, prior to voting. It might be a tad slow, you will have to check.
One way is to change the “vote” field to a thing. Vote = “list of users”. Workflow to add is “when this user clicked the vote button, make changes to votes, add current user to votes.
You can try to use this without the vote counts. Just use the user voted: count for number of votes. This will avoid redundancy of data but not sure how it impacts the performance.