# Restrict options shown on grid filters

**URL:** <https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679>\
**Category:** Get Answers\
**Created:** [July 31, 2023, 5:37pm UTC](https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679 "2023-07-31T17:37:04Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![KathyHiggi39830](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@KathyHiggi39830](https://forums.knack.com/u/KathyHiggi39830)\
**Post date:** [July 31, 2023, 5:37pm UTC](https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679/1 "2023-07-31T17:37:05Z")

</div>

When building a grid, you are able to show records from an object based on the connections to the object. For example, I might choose to only show records that are connected to the same company the of the logged-in account. I am looking for a way to restrict the filters on that grid to only have the same options as what is available to the grid.

I have a grid that shows the data for the company based on user role which pulls up the correct data. When I add the ability to filter data. All of the companies show up as a selection, even though they are not connected to the logged in account and should not be able to be shown. Does anyone know how to restrict the options shown in the filter to match the grid it is applied to?

Thanks.

---

<div class="post-metadata">

**Author:** ![Les](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/les/32/4243_2.png) [@Les](https://forums.knack.com/u/Les)\
**Post date:** [July 31, 2023, 5:46pm UTC](https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679/2 "2023-07-31T17:46:55Z")

</div>

Hi, @KathyHiggi39830!

This might be easier to answer if our support team could take a look at your current build/setup of your grid view and connections. Please consider reaching out to us via the chat widget in the Builder of your app or by submitting this [form](https://share.hsforms.com/1dsVcah_5So6NJmFWExLg4wdv4mq). We will be happy to take a look at your app and assist you!

Thank you for sharing your question and happy Knacking! 🙂

---

<div class="post-metadata">

**Author:** ![CarlHolmes](https://sea2.discourse-cdn.com/flex020/user_avatar/forums.knack.com/carlholmes/32/2814_2.png) [@CarlHolmes](https://forums.knack.com/u/CarlHolmes)\
**Post date:** [July 31, 2023, 6:44pm UTC](https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679/3 "2023-07-31T18:44:09Z")

</div>

Hi @KathyHiggi39830 - If I understand correctly, you should be able to **Restrict Connections** under the FILTER OPTIONS to only show records conected to the logged in user.

 ![image](https://us1.discourse-cdn.com/flex020/uploads/knack/original/2X/5/5c5aebefdffa323bdaf360e72982fa799dbd3ff9.png)

---

<div class="post-metadata">

**Author:** ![KathyHiggi39830](https://avatars.discourse-cdn.com/v4/letter/k/5fc32e/32.png) [@KathyHiggi39830](https://forums.knack.com/u/KathyHiggi39830)\
**Post date:** [July 31, 2023, 8:00pm UTC](https://forums.knack.com/t/restrict-options-shown-on-grid-filters/14679/4 "2023-07-31T20:00:22Z")

</div>

That’s what I thought too, but unfortunately it doesn’t. (Or at least I didn’t find it…) It behaves like the filter does using the “contains”, “is”, “starts with” etc., type of restrictions. There is not an option to link it to the source restrictions. I assumed that it would work like the form fields where you can choose to display only those items connected to something on the screen - but it doesn’t.  
Thanks for replying!
