How to show recently viewed

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?

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.

1 Like

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

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

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:

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.

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.

2 Likes