# Multiple textbox cannot be empty. How?

**URL:** <https://community.thunkable.com/t/multiple-textbox-cannot-be-empty-how/3216938>\
**Category:** Questions about Thunkable X\
**Created:** [September 21, 2024, 7:24am UTC](https://community.thunkable.com/t/multiple-textbox-cannot-be-empty-how/3216938 "2024-09-21T07:24:18Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![aswinchandrasekharan](https://avatars.discourse-cdn.com/v4/letter/a/ebca7d/32.png) [@aswinchandrasekharan](https://community.thunkable.com/u/aswinchandrasekharan)\
**Post date:** [September 21, 2024, 7:24am UTC](https://community.thunkable.com/t/multiple-textbox-cannot-be-empty-how/3216938/1 "2024-09-21T07:24:19Z")

</div>

Hi, I have about 25 text boxes for text inputs in one of the screens. I need to create a logic to show an error in case any of the textboxes are left empty. Is there any way i can create that for all text boxes in one go? Is there such a thing?

---

<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:** [September 21, 2024, 4:05pm UTC](https://community.thunkable.com/t/multiple-textbox-cannot-be-empty-how/3216938/2 "2024-09-21T16:05:59Z")

</div>

Yes. You can loop through all text inputs using [Any Component](https://docs.thunkable.com/blocks/advanced-app-features/any-component-blocks) blocks. Before the loop, set a variable called foundEmpty to false. Inside the loop, use the `is empty` block and if that’s true, change foundEmpty to true and exit the loop.

If you have trouble with this, post a link to your project or a screenshot of what you’ve tried.

---

<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:** [December 20, 2024, 4:06pm UTC](https://community.thunkable.com/t/multiple-textbox-cannot-be-empty-how/3216938/3 "2024-12-20T16:06:50Z")

</div>

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