# "Like" component not working

**URL:** <https://community.glideapps.com/t/like-component-not-working/32174>\
**Category:** Ask for Help\
**Created:** [September 23, 2021, 1:11am UTC](https://community.glideapps.com/t/like-component-not-working/32174 "2021-09-23T01:11:51Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [September 23, 2021, 1:11am UTC](https://community.glideapps.com/t/like-component-not-working/32174/1 "2021-09-23T01:11:52Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/a/0/a09417135067fee4c7e49b2d4919ce9b95bb0da7.jpeg)

“Like” component not working…  
How do you do it, when other users like posts from other users, and when users click the “like” component the number of likes will increase…

notes :  
I’ve added “column is user specific”

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 23, 2021, 1:30am UTC](https://community.glideapps.com/t/like-component-not-working/32174/2 "2021-09-23T01:30:38Z")

</div>

I hardly ever use the like component. What you can do is create a custom action in a button to take care of this.

Have a user-specific like count column and a global count column.

When user presses a like button:

- Increment user-specific like count by 1
- Increment global count by 1

Display the global count, hide the button if user-specific like count equals 1 (to prevent spamming likes).

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [September 23, 2021, 8:05am UTC](https://community.glideapps.com/t/like-component-not-working/32174/3 "2021-09-23T08:05:49Z")

</div>

thanks for your response…  
Can you provide an example in the form of a screenshot?  
🙇‍♂️

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 23, 2021, 8:08am UTC](https://community.glideapps.com/t/like-component-not-working/32174/4 "2021-09-23T08:08:41Z")

</div>

Where do you get stuck? I don’t have an example ready, just follow my response above and tell me if you need any further clarification.

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [September 23, 2021, 11:45am UTC](https://community.glideapps.com/t/like-component-not-working/32174/5 "2021-09-23T11:45:17Z")

</div>

![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/9/69999ce665c510c8ab584503b23b47bc7194e447.png)  
I don’t have an idea what you mean, how do I add…?

- Increment user-specific like count by 1
- Increment global count by 1

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [September 23, 2021, 11:47am UTC](https://community.glideapps.com/t/like-component-not-working/32174/6 "2021-09-23T11:47:57Z")

</div>

notes  
there are already 5 users who pressed the “like” button  
but the data does not increase…

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [September 23, 2021, 11:54am UTC](https://community.glideapps.com/t/like-component-not-working/32174/7 "2021-09-23T11:54:41Z")

</div>

Because you’re increasing it on a user-specific column, it will be specific to the signed-in user only.

When I say user-specific like count, I mean the column you’re already having. This will act as the flag to know whether the user has pushed the like button or not.

When I say global count, I mean a normal column without that user-specific settings so you can display that to all users.

---

<div class="post-metadata">

**Author:** ![agung\_Taufik](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/agung_taufik/32/2589_2.png) [@agung\_Taufik](https://community.glideapps.com/u/agung_Taufik)\
**Post date:** [September 25, 2021, 4:15pm UTC](https://community.glideapps.com/t/like-component-not-working/32174/8 "2021-09-25T16:15:28Z")

</div>

Thank you for guiding me…
