Limit upvotes to 1 per user

I’m creating a web app that allows users to upvote tutorials

For 1 tutorial a user can upvote up to 3 different categories

I’ve been attempting to leverage the Product Hunt template but haven’t figured it out

I only want to limit a user to 1 upvote per category per item

How would I do this?

I was thinking of advanced actions. Do I need to create additional properties?

Welcome to the Adalo forum!

For each category, have a relationship with users. Use the toggle component to add users to the category (or remove). To display the count, count the users in the category.

We do this for all of our voting apps.

and this is the category for a single item?


Tutorial 1
Category 1
Category 2
Category 3

Tutorial 2
Category 1
Category 2
Category 3

If a user upvotes tutorial 1 category 1 I don’t want them to be added to every category 1

Tutorial 1 Category 1 will have a list of users

Tutorial 1 Category 2 will have a list of users

Most tutorials I’m finding just show how to add users to Tutorial 1

Yes, this should work. It won’t add users to Tutorial 2’s categories because that’s a different set of relationships.

No, this doesn’t work. Sorry to be direct, it’s something I’ve tried then tried again once you mentioned.

Maybe this helps to visualize.

I have created join tables. Not sure if you can do that in Adalo

Hi Dominic,

It does work, to be direct ;)!

Here’s a video, let me know if you have any questions.

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.