# 🆕 New containing screen context for conditions

**URL:** <https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316>\
**Category:** General\
**Created:** [July 11, 2020, 5:07pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316 "2020-07-11T17:07:42Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![JackVaughan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jackvaughan/32/49023_2.png) [@JackVaughan](https://community.glideapps.com/u/JackVaughan)\
**Post date:** [July 11, 2020, 5:07pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/1 "2020-07-11T17:07:42Z")

</div>

![Screen Shot 2020-07-11 at 5.58 1](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/c/c80e4168ede985fe9da8b8140f1d1fea82b39026.jpeg)

Conditions now have a new ‘screen’ context which lets you choose values from the current screen. This allows you to do things like:

- _Show items where Category is the same as Category_ (to show a list of items that relate to this one)
- _Show items where Price is equal to Price_ (to show a list of items which have the same price as the current item)

If you’re unsure of how to use this new context - this tutorial might be worth a watch → [https://youtu.be/reeS28W0YXQ](https://youtu.be/reeS28W0YXQ)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 11, 2020, 6:51pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/2 "2020-07-11T18:51:14Z")

</div>

Awesome! I gave a little demo here:

> [@new Screen Visibility and Filtering Conditions!](https://community.glideapps.com/t/screen-visibility-and-filtering-conditions/12306):
>
> Looks like we can now filter/set visibility on items based on values from the current screen!

I’ve already used this feature twice in an app I’m developing. Nicely done Team Glide!

---

<div class="post-metadata">

**Author:** ![Rosewebstudio](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/rosewebstudio/32/12261_2.png) [@Rosewebstudio](https://community.glideapps.com/u/Rosewebstudio)\
**Post date:** [July 11, 2020, 6:55pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/3 "2020-07-11T18:55:14Z")

</div>

Thanks 🙏

---

<div class="post-metadata">

**Author:** ![JackVaughan](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/jackvaughan/32/49023_2.png) [@JackVaughan](https://community.glideapps.com/u/JackVaughan)\
**Post date:** [July 11, 2020, 7:11pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/4 "2020-07-11T19:11:38Z")

</div>

Nice!

You’ll be announcing features before we release them soon 😉

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 11, 2020, 7:13pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/5 "2020-07-11T19:13:24Z")

</div>

[https://www.youtube.com/watch?v=gP2MWN0udU0&t=320s](https://www.youtube.com/watch?v=gP2MWN0udU0&t=320s)

> If you need to have an AND _ **and** _ an OR condition, use an if-then-else column first.

For example, let’s say you want to a list of events that can only be edited by the event owner OR any app Admin AND only if the event hasn’t happened.

Here’s how:

1. Create an if-then-else column in the data table from where the component resides (let’s name this column “Editors”)
2. Create your OR condition within this if-then-else column. For example, if you want where Admin is True OR where email is signed in user, then create two if-then-else conditions:
  1. if Admin column is True then “true”
  2. if Email is signed-in user then “true”
  3. else “false”

3. In your component conditions, create your AND conditions. In the Details \> Edit \> Conditions, you can now create the AND/OR logic by stating Allow Editing where “Editors” is “true” AND where eventDate is after Today.

---

<div class="post-metadata">

**Author:** ![Lucas\_Pires](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/lucas_pires/32/64863_2.png) [@Lucas\_Pires](https://community.glideapps.com/u/Lucas_Pires)\
**Post date:** [July 11, 2020, 8:04pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/6 "2020-07-11T20:04:13Z")

</div>

Yes!! Thanks for that 😍

---

<div class="post-metadata">

**Author:** ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)\
**Post date:** [July 11, 2020, 9:04pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/7 "2020-07-11T21:04:27Z")

</div>

This is great @JackVaughan!

Will we be able to compare a value to a list of values with this new feature?

I want to filter the choices that are available based on whether or not they have already been created for an item. I have a relation column to identify all of the sizes already created.

When I set this up, it seems like Glide is treating the relation as a value to compare to, versus a list of individual values to compare against.

 ![image](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/b/b45df317994e4f763b4fe2d907d35f3b7126dbc2.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [July 11, 2020, 10:20pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/8 "2020-07-11T22:20:18Z")

</div>

You want to check whether the value is/is not one of the values in the list?

---

<div class="post-metadata">

**Author:** ![Lisa](https://avatars.discourse-cdn.com/v4/letter/l/f08c70/32.png) [@Lisa](https://community.glideapps.com/u/Lisa)\
**Post date:** [July 11, 2020, 11:50pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/9 "2020-07-11T23:50:16Z")

</div>

Yes, that’s exactly right.

---

<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:** [July 12, 2020, 1:04pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/10 "2020-07-12T13:04:11Z")

</div>

Has anybody tried yet? Would this allow someone to filter a choice component in an add/edit/form screen based on a prior selection? Would this help eliminate the 2 step form process where some selections would need to be made outside of a form, so that the value is written to the sheet, to set relations for list or choice filtering?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 3:46pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/11 "2020-07-12T15:46:51Z")

</div>

I’ve done this NOT in a form…it would be worth a try. Perhaps @Mark Would know off the top of his head?

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [July 12, 2020, 4:47pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/12 "2020-07-12T16:47:11Z")

</div>

Should work in a form.

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 5:18pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/13 "2020-07-12T17:18:02Z")

</div>

Testing Now.

---

<div class="post-metadata">

**Author:** ![Glider](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/glider/32/9699_2.png) [@Glider](https://community.glideapps.com/u/Glider)\
**Post date:** [July 12, 2020, 5:19pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/14 "2020-07-12T17:19:06Z")

</div>

is this on glideexpirements

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 5:23pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/15 "2020-07-12T17:23:11Z")

</div>

Didn’t work on Add Screen. Got an empty second choice component.

 ![Screen Shot 2020-07-12 at 1.22.25 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/5dda1ef475162bc0b31190946a15f3c3bf7d8c2e.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 5:24pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/16 "2020-07-12T17:24:43Z")

</div>

Yep. (Currently) Last tab in the navigation

 ![Screen Shot 2020-07-12 at 1.23.28 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/0/05d215aeb353939051788e24470744b61f53a376.png)

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 5:49pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/17 "2020-07-12T17:49:27Z")

</div>

Doesn’t work in a form either:  
 ![Screen Shot 2020-07-12 at 1.48.28 PM](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/d/d108590463aed98afd35515d40221e9534e71ec0.png)

---

<div class="post-metadata">

**Author:** ![Mark](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mark/32/125_2.png) [@Mark](https://community.glideapps.com/u/Mark)\
**Post date:** [July 12, 2020, 5:54pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/18 "2020-07-12T17:54:39Z")

</div>

@Robert_Petitto Could you please share this app so I can take a look at it?

---

<div class="post-metadata">

**Author:** ![Robert\_Petitto](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/robert_petitto/32/25193_2.png) [@Robert\_Petitto](https://community.glideapps.com/u/Robert_Petitto)\
**Post date:** [July 12, 2020, 6:05pm UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/19 "2020-07-12T18:05:59Z")

</div>

It’s my experiments app:

[experiments.glideapp.io](http://experiments.glideapp.io) or [https://go.glideapps.com/app/WySsAPQ8TbrW4TAJDWyL](https://go.glideapps.com/app/WySsAPQ8TbrW4TAJDWyL)

Last tab—Filtered List

---

<div class="post-metadata">

**Author:** ![Max\_Makhrov](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/max_makhrov/32/2478_2.png) [@Max\_Makhrov](https://community.glideapps.com/u/Max_Makhrov)\
**Post date:** [July 13, 2020, 7:35am UTC](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316/20 "2020-07-13T07:35:57Z")

</div>

I’ve been waiting for this!  
Thank you so much for the update!

Dependent drop-down lists are on it’s way: [https://7eykr.glideapp.io/](https://7eykr.glideapp.io/)

Update: no matter what I select in list1, list2 is the same.

 ![glide](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/2X/5/52f9df6451fb470fbce4dc61c23c6fcd0ef3a1f3.png)

I’m using “Screen” option.

[Next page](https://community.glideapps.com/t/new-containing-screen-context-for-conditions/12316.md?page=2)
