# Auto Filter ListView result

**URL:** <https://community.thunkable.com/t/auto-filter-listview-result/77183>\
**Category:** Questions about Thunkable X\
**Created:** [May 29, 2019, 4:17pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183 "2019-05-29T16:17:30Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [May 29, 2019, 4:17pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/1 "2019-05-29T16:17:30Z")

</div>

Hi, I am implementing a search box in my listview screen so when i type in any search query, the listview result is automatically filtered down and when no text in textbox, then no filter takes place.

Looking at my setup below, I am wondering how I can store the result of the IF DOES statement so it can be set into the listRow variable.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/2/72749bac1285a9e214f7ae3c03b3cf57143be5fa.png)

I am suppose to set the variable like this but then the IF statement is missing the first parameter

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/0/f072850265581f0aae33c8053633f5393b6e7117.png)

If i was clicking a button to do the search, then this might have been possible using the button onclick property

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [May 29, 2019, 5:07pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/2 "2019-05-29T17:07:19Z")

</div>

Hi there,

I have a tutorial on making a Search Bar for your app that you can see here:

> [@Making a Search Bar](http://community.thunkable.com/t/making-a-search-bar/60939):
>
> Note: This tutorial was updated in June 2020 to reflect the new [when Text Input Changes](https://docs.thunkable.com/text-input#changes) block, which makes adding a search bar to your app much easier! This post will talk about creating a search bar for your app. Search Bars are great if you have a lot of text items or List Viewer options that you want to make available to the user without having a lot of items on the Screen at once. This post will describe how to make a search bar with a search button and a search bar that updates automatic…

Your blocks are seeing if the text input contains the column, which is going to return false if your list is more than 1 item long. You need to see if any items in the list contain that text in your text input. You can see how to do this in the tutorial.

Check it out and let me know if you have any more questions!

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [May 29, 2019, 6:26pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/3 "2019-05-29T18:26:33Z")

</div>

Hi and thanks for reply. I did first try that tutorial but got stuck where you **set app tempList** but I do not see where you initialized that variable.

![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/1/e/1e66d337a50c92372d6bcb3ad12d556afcb0b7e7.png)

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [May 29, 2019, 7:08pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/4 "2019-05-29T19:08:11Z")

</div>

You can initialize a variable anywhere you like in your Thunkable app.

Simply drag the `initialize` block anywhere you want onto the canvas and change `name` to be whatever name you like.

Hope that helps 😄

---

<div class="post-metadata">

**Author:** ![sysads](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/sysads/32/44975_2.png) [@sysads](https://community.thunkable.com/u/sysads)\
**Post date:** [May 29, 2019, 8:02pm UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/5 "2019-05-29T20:02:40Z")

</div>

Followed the entire steps but app crashing or reloading as soon as I type in the text box

---

<div class="post-metadata">

**Author:** ![jane](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jane/32/27575_2.png) [@jane](https://community.thunkable.com/u/jane)\
**Post date:** [May 30, 2019, 10:56am UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/6 "2019-05-30T10:56:55Z")

</div>

Hi there,

Could you send me a link to your app, either here or in a private message?

---

<div class="post-metadata">

**Author:** ![rockode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rockode/32/75168_2.png) [@rockode](https://community.thunkable.com/u/rockode)\
**Post date:** [July 6, 2020, 9:11am UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/7 "2020-07-06T09:11:15Z")

</div>

Yes. I too have a problem. I am working on an app and for that I need to search the list viewer. Whatever letter I have searched and if it is there in the listviewer. only that part needs to be shown.

---

<div class="post-metadata">

**Author:** ![domhnallohanlon](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/domhnallohanlon/32/29554_2.png) [@domhnallohanlon](https://community.thunkable.com/u/domhnallohanlon)\
**Post date:** [July 6, 2020, 11:05am UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/8 "2020-07-06T11:05:51Z")

</div>

@rockode here’s our tutorial for filtering data in a list:

[http://community.thunkable.com/t/search-filter-localdb/68902?u=domhnallohanlon](http://community.thunkable.com/t/search-filter-localdb/68902)

This tutorial can actually be greatly simplified by using the new [`changes`](https://docs.thunkable.com/text-input#changes) event handler

---

<div class="post-metadata">

**Author:** ![rockode](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/rockode/32/75168_2.png) [@rockode](https://community.thunkable.com/u/rockode)\
**Post date:** [July 7, 2020, 11:16am UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/9 "2020-07-07T11:16:10Z")

</div>

This works! Thanks so much @domhnallohanlon. I am your youtube subscriber BTW.

---

<div class="post-metadata">

**Author:** ![ioannis](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/ioannis/32/146956_2.png) [@ioannis](https://community.thunkable.com/u/ioannis)\
**Post date:** [November 8, 2024, 11:25am UTC](https://community.thunkable.com/t/auto-filter-listview-result/77183/10 "2024-11-08T11:25:00Z")

</div>


