# Problem with Custom Search Bar

**URL:** <https://community.glideapps.com/t/problem-with-custom-search-bar/60264>\
**Category:** Ask for Help\
**Created:** [April 7, 2023, 6:22pm UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264 "2023-04-07T18:22:10Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Nex\_Im](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nex_im/32/55845_2.png) [@Nex\_Im](https://community.glideapps.com/u/Nex_Im)\
**Post date:** [April 7, 2023, 6:22pm UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/1 "2023-04-07T18:22:10Z")

</div>

Hello,

I can’t come up with the solution right now, but I suspect it’s very simple in the end.  
I have been able to create a dynamic filter function with if columns and the filter function in the collection settings, now I need the same for my search bar. I have created a template column with the content I want to filter for (see screenshot) and a user specific search input field.  
How would you proceed further? I am a bit confused.  
And the second thing is: Is it at all necessary to work with “Screen” in the filter settings under Collection or is there another way?

Thanks a lot and best regards

 ![Bildschirm­foto 2023-04-07 um 20.16.37](https://us1.discourse-cdn.com/flex002/uploads/glideapps/original/3X/c/8/c85814ee7805dea79eb7c7fec6916fb287f07b68.jpeg)

---

<div class="post-metadata">

**Author:** ![Roldy](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/roldy/32/36068_2.png) [@Roldy](https://community.glideapps.com/u/Roldy)\
**Post date:** [April 7, 2023, 9:56pm UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/2 "2023-04-07T21:56:08Z")

</div>

Add a ‘if then else’ column.  
If ‘the user specific field’ is included in ‘Such eingable’ then true else false.  
Add a filter in your collection where the ‘if then else’ column is true.

---

<div class="post-metadata">

**Author:** ![Nex\_Im](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nex_im/32/55845_2.png) [@Nex\_Im](https://community.glideapps.com/u/Nex_Im)\
**Post date:** [April 7, 2023, 10:45pm UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/4 "2023-04-07T22:45:45Z")

</div>

thank you for your answer.  
I do not know why but it does not work. The list does not change when I type something in the search bar.

I have a user-input field, I have template column with all the information I have connected the two things via an if-column with “is included in” and in my collection set a filter like you said (“If-column” is true). In the user specified row is also what I enter, but the if-column seems to not work properly. This is very strange.

You know what else I can do?

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 8, 2023, 12:36am UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/5 "2023-04-08T00:36:37Z")

</div>

Can you check your database to see if your “user-input field” is inputting to which row? There’s a chance you haven’t cast that info to all rows, hence the problem.

---

<div class="post-metadata">

**Author:** ![Nex\_Im](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/nex_im/32/55845_2.png) [@Nex\_Im](https://community.glideapps.com/u/Nex_Im)\
**Post date:** [April 8, 2023, 3:30pm UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/6 "2023-04-08T15:30:36Z")

</div>

Thank you for the answer.  
You were absolutely right. I did not create a single value based on the user input, that was my problem.

You really saved me from frustration, thanks again

---

<div class="post-metadata">

**Author:** ![ThinhDinh](https://sea2.discourse-cdn.com/flex002/user_avatar/community.glideapps.com/thinhdinh/32/49_2.png) [@ThinhDinh](https://community.glideapps.com/u/ThinhDinh)\
**Post date:** [April 9, 2023, 1:29am UTC](https://community.glideapps.com/t/problem-with-custom-search-bar/60264/7 "2023-04-09T01:29:21Z")

</div>

My pleasure to help!
