# Stop Working Search Screen

**URL:** <https://community.thunkable.com/t/stop-working-search-screen/1596217>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [November 4, 2021, 12:32am UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217 "2021-11-04T00:32:36Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![delee\_techdeveloper](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/delee_techdeveloper/32/29616_2.png) [@delee\_techdeveloper](https://community.thunkable.com/u/delee_techdeveloper)\
**Post date:** [November 4, 2021, 12:32am UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/1 "2021-11-04T00:32:36Z")

</div>

One minute I had it working perfectly next minute… I can’t get the search results to trigger WHYYYYY??? What am I doing wrong???

 ![Screen Shot 2021-11-03 at 7.31.14 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/3/23b70e981b995f8d8f36de0663cec492b592c754.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 4, 2021, 3:07am UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/2 "2021-11-04T03:07:21Z")

</div>

Two things I noticed:

1. You’re doing a lot of processing in a “when text input changes” block. If you press keys quickly one after another (as anyone does when they type), those blocks won’t have time to complete their actions.

2. I’ve never used an initialized “app variable” in a “for each item in list” block. How did you initialize that variable? What happens if you switch that to one of the preset variables such as “i”?

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 5, 2021, 3:03pm UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/3 "2021-11-05T15:03:17Z")

</div>

You are filling your list with **empty variable** that has never been used or even initialized.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/0/307f5c5c7d20e50fa7bb35432f7f5e0fdd7189cf.png)

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 5, 2021, 3:39pm UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/4 "2021-11-05T15:39:27Z")

</div>

It’s initialized at the top-left of the first screenshot and then its value is set within the loop.

---

<div class="post-metadata">

**Author:** ![muneer](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/muneer/32/75210_2.png) [@muneer](https://community.thunkable.com/u/muneer)\
**Post date:** [November 5, 2021, 3:52pm UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/5 "2021-11-05T15:52:58Z")

</div>

`temp item` is initialized as a list and used as a test item. It will not work. The assignment will fail because it expects a method of a list.

---

<div class="post-metadata">

**Author:** ![tatiang](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/tatiang/32/55482_2.png) [@tatiang](https://community.thunkable.com/u/tatiang)\
**Post date:** [November 5, 2021, 3:59pm UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/6 "2021-11-05T15:59:03Z")

</div>

You are correct. I missed that. You can’t mix and match variable types, especially with lists.

---

<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, 1:14pm UTC](https://community.thunkable.com/t/stop-working-search-screen/1596217/7 "2024-11-08T13:14:31Z")

</div>


