Hi guys, i have a simple like button on my app, it is set up like facebook is (kindof)
My problem is i display posts in a repeating group aswell as the button, so when one post is liked they all are. I feel like there could be an easy fix here i just cant crack it.
Any help highly appreciated!
@nrpcrypto7… these links should help.
Hi again folks,
On my users posts I am trying to create the same like button as we have below this post. If 10 people like then the number shows ten likes and the love icon remains red. Even when the next time user logs in.
Trying to think multiple ways on how to set the data structure. I was thinking of adding a field type ‘likes’ in Users and setting that as yes/no. Then on the love icon, I could put a condition saying, if the current user’s like is yes, change the color to red.
Then I a lo…
After testing out several ways to build custom Like buttons and up/down voting systems, I’ve discovered the fastest method.
What doest work
At first it might seem obvious to implement a workflow that adds +1 to a like button or upvote. However, this makes it hard to keep track if current user has already added a like or a vote, and makes it near impossible to then “unlike” the liked post.
Another method is to have a “likes” database. Then to retrieve the total likes or upvotes is to do a sear…
i created a like button and i want to click it and display the count of the likes but am having an issue on how to set a condition that when the current user likes a post in a repeating group he wont be able to click again instead am getting the condition across all the post
My problem is i display posts in a repeating group aswell as the button, so when one post is liked they all are.
Are you saying that you
want all posts to be liked then one post like button is clicked, but don’t know how to do that?
Or are you saying that you
don’t want that to happen, but it currently is happening?
sorry my explanations are terrible! I mean when like is clicked on one post, because its a repeating group it +1 like to all posts. I only would like the particular post you click on and like to show the like count instead of every post.
I hope that helps … thankyou for your time!
Well that certainly shouldn’t happen (unless you’re doing something very wrong)…
But without knowing what you’re doing, it’s a bit hard to help…
Feel free to share some more info and/or screenshots of what you’re currently doing…
But if your like button is inside the RG cell, you can refer to the current cell’s post in any workflows, so the ‘like’ should only be created for that specific post.
I’m sure Adam will walk you through it, but for what it’s worth, literally every one of the links I provided could help you here. Anyway, good luck!
thankyou i am working my way through your links it’s much appreciated!
Im going to have to look into this more, i cant get any screenshots currently but as soon as i can i will get back to you guys! Im sure this shouldnt be breaking my brain but it for sure is
I think the problem may arise in the data source of the group where the button is placed or may be the workflow.
The workflow will be like when you clicked the button make changes to a thing and the thing will be “Parent group post” and change the field.
I hope it will help you.
This topic was automatically closed after 69 days. New replies are no longer allowed.