Buttons refreshing when page refreshes

Hello, i am curious to know if it is possible to make it to where if a button is pressed and then not visible because of this action to keep it not visible when the page is reloaded. I have a like and dislike system implemented and whenever someone clicks like it changes the value of the posts likes and the button itself is no longer visible however if someone were to refresh the page the like button is visible again and it could be pressed once more to change the value of the post again. Thanks in advance!

You’re probably going to need to keep a record on that post of who has liked it. Then, you would do a check to see if the current user is within that list of users who liked it, and if so, don’t show the like button.

1 Like

Thank you it works like a charm now!!

1 Like

This topic was automatically closed after 70 days. New replies are no longer allowed.