# Books Collection App - adding anonymous likes/rating

**URL:** <https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465>\
**Category:** Ask for Help\
**Created:** [June 29, 2021, 8:29am UTC](https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465 "2021-06-29T08:29:22Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Abenzvi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abenzvi/32/24487_2.png) [@Abenzvi](https://community.glideapps.com/u/Abenzvi)\
**Post date:** [June 29, 2021, 8:29am UTC](https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465/1 "2021-06-29T08:29:22Z")

</div>

Hi!  
I want to build ann glideapp for our organization’s small book collection, that would be displayed on 2-3 tablets in our loby, so that people would be able to view our books and write responds.  
Is there a way to create “anonymous likes/rating” function, that would allow anyone who use the tablets to rate the books (or press like/dislike) annoymously, without signing in, while the ratings would be accumulated? The counting of the likes/ratings are the main issue.  
Thank you so much!

---

<div class="post-metadata">

**Author:** ![Darren\_Murphy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/darren_murphy/32/47326_2.png) [@Darren\_Murphy](https://community.glideapps.com/u/Darren_Murphy)\
**Post date:** [June 29, 2021, 9:16am UTC](https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465/2 "2021-06-29T09:16:27Z")

</div>

Certainly doable, but I think the main challenge with your scenario will be preventing people from pushing like/dislike multiple times in quick succession, and skewing your numbers. For your use case, I think a good approach would be to temporarily hide the components after each use. So you could do something like this:

- Create two basic/number columns to hold your counts of likes and dislikes
- Create a User Specific Column to store the last reaction time
- Create a math column to calculate the number of minutes since the last reaction time. The formula would be something like: `(Now-LR)*1440`, where:
  - Now is the current date/time
  - LR is the Last Reaction Time

- Now create an if-then-else column:
  - If Last Reaction Time is empty, then true
  - If mins since last reaction time is equal to or greater than 1, then true

- Now assuming that you use a Button Bar as a “reaction” component (left for like, right for dislike), then each button would have a 2 step action:
  - Increment the appropriate counter by 1
  - Do a Set Columns, setting the Last Reaction Time to the current date/time

- And finally, use a visibility condition on the button bar component, such that it is only visible when the it-then-else column is `true`

The effect of all that would be that whenever a user tapped either of the reaction buttons, the like/dislike would be recorded, and the button bar would be hidden for about a minute.

---

<div class="post-metadata">

**Author:** ![Abenzvi](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/abenzvi/32/24487_2.png) [@Abenzvi](https://community.glideapps.com/u/Abenzvi)\
**Post date:** [June 29, 2021, 9:29am UTC](https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465/3 "2021-06-29T09:29:36Z")

</div>

Thank you so much! That’s brilliant 🙂

---

<div class="post-metadata">

**Author:** ![NoCodeAndy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nocodeandy/32/62530_2.png) [@NoCodeAndy](https://community.glideapps.com/u/NoCodeAndy)\
**Post date:** [January 17, 2024, 4:51pm UTC](https://community.glideapps.com/t/books-collection-app-adding-anonymous-likes-rating/28465/4 "2024-01-17T16:51:37Z")

</div>


