# How to filter a “Choice button” according to the context of the screen

**URL:** <https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170>\
**Category:** Ask for Help\
**Created:** [February 19, 2025, 1:18pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170 "2025-02-19T13:18:07Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![mfsilvalima](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mfsilvalima/32/85132_2.png) [@mfsilvalima](https://community.glideapps.com/u/mfsilvalima)\
**Post date:** [February 19, 2025, 1:18pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/1 "2025-02-19T13:18:07Z")

</div>

Hello Everyone

I’m working on an app for gym workouts. In my workflow, the instructor first creates a workout and then creates exercises within that workout. I have a database of exercises for the instructor to select from, but this database is very large and is categorized by muscle group.

What I thought was, when the teacher creates the Workout, he could choose the category. Ex: Chest. So on the next screen when he creates an exercise, in the Choice button, I would create a filter and only show the exercises of that muscle group.

However, on the other screen I cannot use this information, it does not appear in the “custom column” or in the filter to select this column and do an if within the “Filter data”

Does anyone have an idea of ​​how to do this?

---

<div class="post-metadata">

**Author:** ![MaximeBaker](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/maximebaker/32/80877_2.png) [@MaximeBaker](https://community.glideapps.com/u/MaximeBaker)\
**Post date:** [February 19, 2025, 2:47pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/2 "2025-02-19T14:47:38Z")

</div>

Do you not see “Screen” section in the filter variables?

---

<div class="post-metadata">

**Author:** ![mfsilvalima](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mfsilvalima/32/85132_2.png) [@mfsilvalima](https://community.glideapps.com/u/mfsilvalima)\
**Post date:** [February 19, 2025, 5:33pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/3 "2025-02-19T17:33:42Z")

</div>

Yes, it does appear. But the options that appear are precisely from the exercise and not from the training.

The Flow I have:  
 → I create the workout (here I choose the category)  
 → Within the Workout Details I create the exercise (here I would like to filter based on the category that was chosen in the workout)

---

<div class="post-metadata">

**Author:** ![Mariusz](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mariusz/32/89415_2.png) [@Mariusz](https://community.glideapps.com/u/Mariusz)\
**Post date:** [February 19, 2025, 9:34pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/4 "2025-02-19T21:34:35Z")

</div>

1. Add a column in the user profile which is going to hold temporary value for conditional visibility.
2. Add a multi-step action when the user goes to the conditional visibility screen:

Set column values in the user profile [temporary value column] = [currently selected category] \> Go to tab [your screen with conditional visibility]

Then filter the content of the next screen based on the user table column

---

<div class="post-metadata">

**Author:** ![mfsilvalima](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/mfsilvalima/32/85132_2.png) [@mfsilvalima](https://community.glideapps.com/u/mfsilvalima)\
**Post date:** [February 21, 2025, 2:24pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/5 "2025-02-21T14:24:34Z")

</div>

It worked! Thank you very much \<3

---

<div class="post-metadata">

**Author:** ![system](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/system/32/53398_2.png) [@system](https://community.glideapps.com/u/system)\
**Post date:** [February 28, 2025, 2:25pm UTC](https://community.glideapps.com/t/how-to-filter-a-choice-button-according-to-the-context-of-the-screen/80170/6 "2025-02-28T14:25:11Z")

</div>

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
