# Empty screen + custom segment picker

**URL:** <https://community.glideapps.com/t/empty-screen-custom-segment-picker/35607>\
**Category:** Ask for Help\
**Created:** [December 7, 2021, 2:37am UTC](https://community.glideapps.com/t/empty-screen-custom-segment-picker/35607 "2021-12-07T02:37:05Z")\
**Posts on this page:** 1\
**Showing post:** 7

<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:** [December 9, 2021, 12:55am UTC](https://community.glideapps.com/t/empty-screen-custom-segment-picker/35607/7 "2021-12-09T00:55:00Z")

</div>

> [@Blaz](#):
>
> is it possible also to make a column (actually two) in which the date&time of user action is recorded (when user has selected _liked_ and/or _already have_ )? If yes, how?

Yes, it’s possible. But you’ll need to change the components that you are currently using for “Liking” items and indicating that they’re already purchased. And you’ll also need some extra logic.

I’ll explain why.

- What you’ll need to do is create two date/time user specific columns - one for “Liked At” and one for “Purchased At”.
- It’s important that these columns are user specific, as the dates will be different for every user.
- Now when a user “likes” an item, or when they mark it as purchased you can do a [Set Column Values](https://docs.glideapps.com/all/reference/actions/single-actions/data/set-columns) and set the associated date/time column to the [current date/time.](https://docs.glideapps.com/all/reference/values/introduction-to-values#special-values)

The problem with the above is that neither of the components that (I assume) you’re currently using - favourites and switch - can have actions configured. So you’ll need to change those to something else, and then use a Set Column Values to set both the boolean _and_ the date/time column at the same time.

In terms of which components to use, it doesn’t really matter, as long as you choose components that support actions. But some will be easier to make work with this than others. Probably the simplest choice would be a [Button Bar](https://docs.glideapps.com/all/reference/components/buttons/button-bar). Then you could use one button for “Liked” and the other for “Already Purchased”.

The next problem that you’ll most likely run into is that you’ll probably want the button labels to change depending on the status. For this, you could use an [if-then-else](https://docs.glideapps.com/all/reference/data-editor/computed-columns/if-then-else) column to create a dynamic label. For example, you might do the following for the “Like” button:

- If user specific boolean is not true, then "Like 👍 "
- Else "Unlike 👎 "

And then use that as the button label.

So as you can see, it’s possible. It just gets a little complicated because the components you’re using don’t support the methods that you need.

---

_[View the full topic](https://community.glideapps.com/t/empty-screen-custom-segment-picker/35607)._
