# My Search Function Has Suddenly Stopped Working

**URL:** https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377
**Category:** Questions about Thunkable X
**Created:** [April 14, 2020, 4:18pm UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377 "2020-04-14T16:18:24Z")
**Posts on this page:** 8
**Page:** 1

<div class="post-metadata">

### Author: ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)
#### Post date: [April 14, 2020, 4:18pm UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/1 "2020-04-14T16:18:25Z")

</div>

Hi all,

I have run into an issue where my search function only works after the first failed attempt. AKA, I search for ‘Bacon’ and nothing appears. I clear the search and try again and it works perfectly. Does anybody have any clue what the issue may be? Here is a shot of my blocks:

 ![newone](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/c/3c11d37ddbcf00458c57dcb7e10f88ee0834ebef.jpeg)

Thank you all 🙂

---

<div class="post-metadata">

### Author: ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)
#### Post date: [April 15, 2020, 6:33am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/2 "2020-04-15T06:33:35Z")

</div>

It looks like youre adding “Bacon” to the list that its checking. My guess would be the list you are checking isnt populating correctly. Have you added a listviewer to make sure that after the list data loads it is actually there?

---

<div class="post-metadata">

### Author: ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)
#### Post date: [April 15, 2020, 9:20am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/3 "2020-04-15T09:20:05Z")

</div>

Hi Sam,

I’ve attached a gif below that shows the issue, notice that the list populates fine pre-search, then after the first search nothing. Once the list is reset and search cleared, the search function begins to work again…

![ezgif.com-video-to-gif](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/3/e372f804beb6ada74ac3faef9adb7a991ba1c6c6.gif)

Any ideas?

---

<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: [April 15, 2020, 10:26am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/4 "2020-04-15T10:26:06Z")

</div>

@chris.bailey230698t

We also have a sample app with search capabilities here:

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

That might be a useful reference for you?

---

<div class="post-metadata">

### Author: ![samclever](https://avatars.discourse-cdn.com/v4/letter/s/ec9cab/32.png) [@samclever](https://community.thunkable.com/u/samclever)
#### Post date: [April 16, 2020, 12:54am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/5 "2020-04-16T00:54:21Z")

</div>

That is odd. I’m not sure then. Sorry.

---

<div class="post-metadata">

### Author: ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)
#### Post date: [April 16, 2020, 12:59am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/6 "2020-04-16T00:59:42Z")

</div>

Hi @domhnallohanlon,

Thank you for this, I had trouble with that setup when using a database list before which is why I have opted for the current means that @kartik14 showed me. Unfortunately it has suddenly started to struggle - interestingly, it seems as though I need to press the search button twice for it to work. It’s also skipping some search results which is unusual. Such as, it’ll pick up the word ‘roll’ in ‘Vegan roll’ but not ‘Sausage roll’.

Any ideas?

---

<div class="post-metadata">

### Author: ![chris.bailey230698t](https://avatars.discourse-cdn.com/v4/letter/c/8e8cbc/32.png) [@chris.bailey230698t](https://community.thunkable.com/u/chris.bailey230698t)
#### Post date: [April 16, 2020, 12:57pm UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/7 "2020-04-16T12:57:20Z")

</div>

I’ve now tried this version of the search feature out and it seems to be working well for me now, definitely slower than the other one I had but at least I don’t have to press search twice!

---

<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:38am UTC](https://community.thunkable.com/t/my-search-function-has-suddenly-stopped-working/563377/8 "2024-11-08T11:38:59Z")

</div>


