# How to stop a loop and wait for user's command?

**URL:** <https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784>\
**Category:** Questions about Thunkable X\
**Tags:** beginner\
**Created:** [April 17, 2022, 11:39am UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784 "2022-04-17T11:39:02Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![dhanushan48608nkfw](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dhanushan48608nkfw](https://community.thunkable.com/u/dhanushan48608nkfw)\
**Post date:** [April 17, 2022, 11:39am UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/1 "2022-04-17T11:39:02Z")

</div>

Hello,  
I’m making an app for the administrator. The app will show newly registered but not approved customers one by one. The administrator have to choose between “Approve” or “Cancel” or “Hold”.  
The problem is the loop I created is showing the customers one by one but not waiting for the user’s choice. How to make it wait?

 ![image_2022-04-17_170855800](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/f/3/f3eaec37144de7c058797ad4aa9f2451f06dff87.png)

---

<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:** [April 17, 2022, 12:38pm UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/2 "2022-04-17T12:38:54Z")

</div>

It would be much better to write the rows to a list and then use the `Item Click` block in the list to allow the administrator to change the value.

Another option is to directly list it in a DVL (Data Viewer List) and then filter the required rows.

---

<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:** [April 17, 2022, 2:33pm UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/3 "2022-04-17T14:33:10Z")

</div>

Don’t use a loop for this. Just display a single value and when the user clicks a button, increase the row id variable by one and get the single value again.

---

<div class="post-metadata">

**Author:** ![dhanushan48608nkfw](https://avatars.discourse-cdn.com/v4/letter/d/fbc32d/32.png) [@dhanushan48608nkfw](https://community.thunkable.com/u/dhanushan48608nkfw)\
**Post date:** [April 19, 2022, 5:28am UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/4 "2022-04-19T05:28:48Z")

</div>

How to get the filtered rows (Unconfirmed consumers data only) to DVL from google sheet?

---

<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:** [April 19, 2022, 8:28am UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/5 "2022-04-19T08:28:55Z")

</div>

> [@dhanushan48608nkfw](#):
>
> How to get the filtered rows

See this example  
[https://x.thunkable.com/projectPage/6182dddab8ae1a001142ac60](https://x.thunkable.com/projectPage/6182dddab8ae1a001142ac60)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [July 18, 2022, 8:29am UTC](https://community.thunkable.com/t/how-to-stop-a-loop-and-wait-for-users-command/1835784/6 "2022-07-18T08:29:18Z")

</div>

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
