Hi, I have racked my brains and read multiple different articles and so far I have managed to make an onClick event which counts clicks and displays this number in a text box.
First, I created a collection titled: LikeButton and gave it a number field titled: yesfield. Then I added an icon button, text box and a dataset to my page. I linked the text box to the yesfield in my collection.
Then I added an onClick event to my icon button and entered this code:
This achieved the text box displaying the number of clicks, although rather slowly. Now that is mostly working, how do I make it only record unique clicks/unique users clicks? (without people logging in…)
Also how would I go about adding this to my repeater and making a like button work for each and every item? (Each and every item having their own number of likes)
I have no Knowledge of code and have managed to get this far from reading different tutorials, can anyone please give me a code example of what I am trying to achieve, thank you!