# How can you add a record to a user's sheet when that user clicks on a tab?

**URL:** <https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446>\
**Category:** Ask for Help\
**Created:** [March 10, 2022, 12:07am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446 "2022-03-10T00:07:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Butter-Bee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/butter-bee/32/15102_2.png) [@Butter-Bee](https://community.glideapps.com/u/Butter-Bee)\
**Post date:** [March 10, 2022, 12:07am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446/1 "2022-03-10T00:07:17Z")

</div>

I know other’s have mentioned this a year and half ago… So i’m curious if anyone has made any progress or found a work around???

**Previous post:**

> [@Count Clicks on a Tab or Share Button](https://community.glideapps.com/t/count-clicks-on-a-tab-or-share-button/20281):
>
> Feature request: I am loving the ability to monitor/track the number of clicks to a button or list using the new Actions feature and am adding it to my app in about 20 places to track engagement (thank you @Robert_Petitto). My request would be to somehow implement this to the action of opening a tab or using the share button so that I could also track those actions. I’m using this as a bit of overkill atm but by watching what my users are connecting with will help me update the app to give th…

---

<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:** [March 10, 2022, 12:13am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446/2 "2022-03-10T00:13:09Z")

</div>

We still don’t have tab-based actions, so your best bet is to do something like Manan said below:

> [@Count Clicks on a Tab or Share Button](https://community.glideapps.com/t/count-clicks-on-a-tab-or-share-button/20281/4):
>
> 2 workarounds for this come to my head, For the share button, disable the about tab and create your own tab which is a replica, then redirect to the link of you app and increment count using actions. For counting users on tab, you can use Google Analytics and I can confirm I get accurate results or you could have some buttons on each tab which are actions which users will surely do if they land on the tab (for example opening the details of a list view) Set up an action which increments the v…

Basically hide everything on that tab, show only a button that the user has to click, then set a value somewhere to show everything else on that tab, and add a row to the sheet you want.

May we know what is your use case here?

---

<div class="post-metadata">

**Author:** ![Butter-Bee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/butter-bee/32/15102_2.png) [@Butter-Bee](https://community.glideapps.com/u/Butter-Bee)\
**Post date:** [March 10, 2022, 12:23am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446/3 "2022-03-10T00:23:38Z")

</div>

Yes! I’ve got a notifications tab. In the bottom navigation bar it displays a small color circle on top of that tab when there are un-seen notifications.

I’d like to make it so that when a user clicks on the notification tab that small color circle disappears until a new notification has been added to that tab.

---

<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:** [March 10, 2022, 12:57am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446/4 "2022-03-10T00:57:56Z")

</div>

Are you determining whether it’s “unseen” or not by a user-specific boolean?

My approach for this would be to set a value in your user profiles data when the user clicks something on that tab, that would record their last interaction on that tab.

If the notifications’ timestamp are before that last interaction timestamp, then don’t count them towards your “unseen” count.

---

<div class="post-metadata">

**Author:** ![Butter-Bee](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/butter-bee/32/15102_2.png) [@Butter-Bee](https://community.glideapps.com/u/Butter-Bee)\
**Post date:** [March 10, 2022, 1:00am UTC](https://community.glideapps.com/t/how-can-you-add-a-record-to-a-users-sheet-when-that-user-clicks-on-a-tab/39446/5 "2022-03-10T01:00:05Z")

</div>

Sweet, I’ll try something out like this later today and report back out.
