# Visibility "is within" some other field

**URL:** https://community.glideapps.com/t/visibility-is-within-some-other-field/14094
**Category:** Feature Requests
**Created:** [August 17, 2020, 2:33pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094 "2020-08-17T14:33:47Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 2:33pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/1 "2020-08-17T14:33:47Z")

</div>

I searched for this but couldn’t find it yet… could the “is within” visibility be set up to allow a choice of other fields? Currently, the only options are “today” or “now”, but I’m trying to control visibility when a date is within another date that isn’t today or now.

---

<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: [August 17, 2020, 2:49pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/2 "2020-08-17T14:49:06Z")

</div>

Good idea. For now you could create templates of the date without the time and compare the templates.

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 2:55pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/3 "2020-08-17T14:55:15Z")

</div>

Yup for now I’ve created text-based lists of each date entered and allow those lists to be picked as the filter.

Speaking of templates without the time… do you know of a better way to do this in Glide? What I’m currently doing is creating formulas in the sheet (i.e. TEXT(B2:B, “DDDD, MMMM D, YYYY”) ), but this ends up creating text columns in Glide and it makes it next to impossible to perform relation-checks when one field is using a Date column and the other a Text column. It would be great to be able to copy a column in the editor, but give it a different format. For me, I need to capture the Current Date/Time of the form submission, but also need to extract the Date only from this value.

---

<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: [August 17, 2020, 3:09pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/4 "2020-08-17T15:09:40Z")

</div>

Maybe I’m misunderstanding, but I’m talking about setting the format on the date column, then creating a template, to lock in the formatted version of the date. Otherwise the underlying raw timestamp format is still used for a date column except when displayed on the screen. This is all within Glide and doesn’t involve any formulas in the sheet. I’m guessing you could use either the date column or the template column for your relation, depending on how the date is set up in the other sheet. I would probably do the same template in the other sheet as well and use both templates for the relation.

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 3:14pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/5 "2020-08-17T15:14:39Z")

</div>

Ah I see… so you create a Template after assigning the format in the Editor, which preserves its format.

My issue is that I want my Date/Time to be displayed as a long format Date + Time, but I also want to extract the Date only in another separate column. I don’t think I can create a Template of a Date/Time column and then edit it to only show the date value.

---

<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: [August 17, 2020, 3:20pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/6 "2020-08-17T15:20:46Z")

</div>

Ok, got it. I’ve done something similar recently to extract a formatted date only and extract a formatted time only. Unfortunately I was only able to do this by using a formula in Google sheets to duplicate the original date column. But that still allowed me to set the formatting within glide, so one column as date and the other as time.

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 3:24pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/7 "2020-08-17T15:24:15Z")

</div>

Yup that’s what I’ve been doing too, which gets back to my original issue of not being able to filter the “is within” to a different date column. What I had to do was create additional text-based columns for the date-only columns and use that as a select list in my choice component. I’m using a choice component to filter submissions that were submitted on a specific date and need the choices to match the date only value of the “current date/time” special value that was obtained through a form submission.

---

<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: [August 17, 2020, 3:27pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/8 "2020-08-17T15:27:22Z")

</div>

But can’t you build you choice off of the template as well as filter the template column instead of the date column? What I’m saying is, instead of comparing text to date, you can instead compare text to text.

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 3:30pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/9 "2020-08-17T15:30:35Z")

</div>

Yes that’s exactly what I’m doing. If I could simply filter “is within” the other date field, there wouldn’t be a need to perform the text conversions all over the place though.

---

<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: [August 17, 2020, 3:34pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/10 "2020-08-17T15:34:31Z")

</div>

Ok. It wasn’t clear in your first post that you already had it working. Was just offering a suggestion if you were having trouble and needed something now.

---

<div class="post-metadata">

### Author: ![kyleheney](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/kyleheney/32/41173_2.png) [@kyleheney](https://community.glideapps.com/u/kyleheney)
#### Post date: [August 17, 2020, 3:35pm UTC](https://community.glideapps.com/t/visibility-is-within-some-other-field/14094/11 "2020-08-17T15:35:28Z")

</div>

Oh sorry! Appreciate the suggestions either way!
