# How to show recently viewed

**URL:** <https://community.glideapps.com/t/how-to-show-recently-viewed/71238>\
**Category:** Ask for Help\
**Created:** [February 28, 2024, 4:49am UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238 "2024-02-28T04:49:15Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![lmshupp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lmshupp/32/71440_2.png) [@lmshupp](https://community.glideapps.com/u/lmshupp)\
**Post date:** [February 28, 2024, 4:49am UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/1 "2024-02-28T04:49:15Z")

</div>

I’d like to be able to show a collection filtered by recently viewed.

I was able to use a special component “Current Date” on an edit screen and save that into my collection’s table (user specific column) and later reference that when filtering, but when I try to add this special component on a regular page it’s not available. So i’m not sure how to capture and store a date stamp when a page is opened or clicked on in order to reference later as recently viewed or not.

Anyone know how to do this?

---

<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:** [February 28, 2024, 5:54am UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/2 "2024-02-28T05:54:04Z")

</div>

It depends how you are navigating to the page.  
If it’s a top level tab that the user just clicks on in the navigation menu, then it’s not possible.  
You need an action.  
So for example if a user is clicking a collection to view a specific item, you can modify the item click action so that it first does a Set Column Values (to set the timestamp), followed by a Show Details Screen.

---

<div class="post-metadata">

**Author:** ![lmshupp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lmshupp/32/71440_2.png) [@lmshupp](https://community.glideapps.com/u/lmshupp)\
**Post date:** [February 28, 2024, 3:41pm UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/3 "2024-02-28T15:41:04Z")

</div>

I thought to do this too, but I only see the ability to add one click action. Is that a limitation of a free plan? Will I be able to add more click actions once on a paid plan?

Here’s what I see:  
 ![screen recording](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/7/1/71518f0c1b98721861bae5e8c5ef9c4ad56b378b.gif)

---

<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:** [February 28, 2024, 4:48pm UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/4 "2024-02-28T16:48:23Z")

</div>

Click on the existing action, and you will see an option to create a custom action.

 ![CleanShot 2024-02-29 at 00.46.41@2x](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/6/c/6cd05bebfd5d93c4814424f50b31cd0722afb20b.png)

> **[Introduction to Actions | Glide Docs](https://www.glideapps.com/docs/getting-started/introduction-to-actions)**
>
> Add actions that users can trigger.

---

<div class="post-metadata">

**Author:** ![lmshupp](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lmshupp/32/71440_2.png) [@lmshupp](https://community.glideapps.com/u/lmshupp)\
**Post date:** [February 28, 2024, 5:57pm UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/5 "2024-02-28T17:57:43Z")

</div>

Cool. That worked! Now I need to figure out how to display when within last 7 days.

I only see simple comparisons with no way to calculate within Last Viewed - 7 and today:

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

I imagine I need to add another column that returns true if within last 7 days… But if I have a column that calculates based on a user-specific column, will it’s values be user specific too? I tried doing this but the calculated columns aren’t user-specific, so it’s not working.

---

<div class="post-metadata">

**Author:** ![Jeff\_Hager](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jeff_hager/32/43_2.png) [@Jeff\_Hager](https://community.glideapps.com/u/Jeff_Hager)\
**Post date:** [February 28, 2024, 7:12pm UTC](https://community.glideapps.com/t/how-to-show-recently-viewed/71238/6 "2024-02-28T19:12:56Z")

</div>

If you create a math column that calculates `Now-7`, you will get a date 7 days prior to today. Then you can use that value for your comparison.
