How to make a button to earn points?

Hi,i want to put a button that when you press it it gives you 5 points,and this can be pressed more than once,how i do that?

If the points are attached to a user, you need to create a new property in the user collection. This would be a number property and you could call it “points”.

Then on the action of the button you would need to update the logged in user, and update the points property to be “{points}+5”

image

1 Like

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