# Problem with conditition to fill out all text boxes

**URL:** <https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283>\
**Category:** Questions about Thunkable X\
**Tags:** beginner, question, help, legacy-interface\
**Created:** [September 15, 2021, 7:55am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283 "2021-09-15T07:55:01Z")\
**Posts on this page:** 16\
**Page:** 1

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 15, 2021, 7:55am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/1 "2021-09-15T07:55:01Z")

</div>

Hi,

I am currently designing a planner application for my school and I am running into some trouble with designing a way for users to enter their lessons. I have a screen which allows users to enter their lessons (see screenshot below) however, I need to create a condition to ensure that the user fills out all the textboxes before entering the lessons for the following day.

When a run the app and do not fill out all textboxes, a message appears notifying the user to fill out all boxes. This is working as intented. The issue is when you continue to fill out all textboxes once the user has seen the message, the app does not store the data and move on to the next day as intened.

I think the problem is how I am using the ‘any’ component but it could be something else, I’ve attached a screenshot of the blocks I am using.

If anyone could help me with this it would really be appreciated.

Thanks.

 ![Screen Shot 2564-09-15 at 2.54.29 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/571f75e498699e7cdb5423ee03ffa999d6353224.png)  
 ![Screen Shot 2564-09-15 at 2.43.12 PM](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/b/4/b463eddab3bc05c7093038e9f191ab2cb3b2530f.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:** [September 15, 2021, 8:02am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/2 "2021-09-15T08:02:41Z")

</div>

I don’t see anywhere in your code that you are saving the information somewhere. I either understood your message wrong or looking at the wrong image of the blocks.

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 15, 2021, 8:10am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/3 "2021-09-15T08:10:52Z")

</div>

@muneer in the function, each lesson the user enters is stored in a list ‘stored variable timetable’ onf after another.

---

<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:** [September 15, 2021, 8:27am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/4 "2021-09-15T08:27:33Z")

</div>

Yes, I could see that from your code. But to show these stored (only for the life of the app session) data you need to assign them to some kind of components in the screen.

Without coding some kind of block to show what is in the list it will not show on the screen by itself.

---

<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 15, 2021, 2:43pm UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/5 "2021-09-15T14:43:43Z")

</div>

You may need to share a link to the project because what you’re describing with Any Components and what you’ve posted are two different things. It’s also not clear from your screenshots what event (e.g. button click) is triggering the navigation to the next page. There’s just too much missing information to help with this issue.

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 16, 2021, 1:17am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/6 "2021-09-16T01:17:49Z")

</div>

@tatiang here is the link to the project, the code is on the ‘set up’ screen.

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 16, 2021, 1:19am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/7 "2021-09-16T01:19:42Z")

</div>

@muneer Yes, the list is shown on the following screen once the user has entered all the data. Once the set up is complete, the app automatically navigates another screen where their timetable is shown.

---

<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:** [September 16, 2021, 2:03am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/8 "2021-09-16T02:03:10Z")

</div>

I don’t see the link to the project so the question is “Are you showing the content of the list in the following screen the correct way”?

---

<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 16, 2021, 2:07am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/9 "2021-09-16T02:07:07Z")

</div>

The link is missing. ☹

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 16, 2021, 2:42am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/10 "2021-09-16T02:42:09Z")

</div>

@tatiang I’m really sorry, here it is:

[https://x.thunkable.com/copy/2bccb98067f41122c8ef25cdf6c5390a](https://x.thunkable.com/copy/2bccb98067f41122c8ef25cdf6c5390a)

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 16, 2021, 2:44am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/11 "2021-09-16T02:44:45Z")

</div>

@muneer here is a link to the project if you want to take a look:

[https://x.thunkable.com/copy/2bccb98067f41122c8ef25cdf6c5390a](https://x.thunkable.com/copy/2bccb98067f41122c8ef25cdf6c5390a)

The problem isn’t really with the list showing, that is working fine, it is more about the condition for the user to fill out the text boxes. Any suggestions on how to fix this would be much appreciated.

---

<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:** [September 16, 2021, 3:48am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/12 "2021-09-16T03:48:19Z")

</div>

The `is Empty` coding block expects a component but you are supplying a list which will not work.  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/3/5/35f52128368e32e75c10442f998f195075128ff8.png)

I suggest you create a function that will return **false** if any of the text fields empty. This way you achieve what you are trying to do now.

**[Suggestion]**

I would do something like this

Create a function to run through all the fields and check them one by one. If any of the fields is empty the function returns **False** otherwise it returns **True**  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/9/8/98970f2a32f3cd2f14584ff45a8c74f6177c63eb.png)

The next step is to change your main function to use the created function.

 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/7/674934ce73c7997887f2233a0708eac859eb57dd.png)

The last step is to reverse the order of codes you have and use the long list of code in the **do** part and the warning message in the **else** part.

like this  
The **do** part _(partial)_

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

The **else** part  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/8/b/8bca4466ed8bc19924761cd58a165ff3102f4fb1.png)

Happy Thunking!

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 17, 2021, 4:58am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/13 "2021-09-17T04:58:03Z")

</div>

@muneer I added all of your suggestions however, it is still not working correctly. Now, it is not showing the error message at all and proceeds to populate the table. What could I be doing wrong?

 ![Screen Shot 2564-09-17 at 11.57.31](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/7/3/736e53093b691c06664be001f95dc0634b000851.png)  
 ![Screen Shot 2564-09-17 at 11.57.48](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/e/4/e42029a52ccf5518599e0568d6270214487a8789.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:** [September 17, 2021, 5:56am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/14 "2021-09-17T05:56:28Z")

</div>

How do you know it’s not working?

What made you think the code has a problem?

---

<div class="post-metadata">

**Author:** ![jakeheron](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/jakeheron/32/116818_2.png) [@jakeheron](https://community.thunkable.com/u/jakeheron)\
**Post date:** [September 17, 2021, 6:06am UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/15 "2021-09-17T06:06:31Z")

</div>

@muneer I live tested the code and it was not displaying the error message when a text box was not filled out. However, I seemed to have got it working with a simple modification to your original code:  
 ![Screen Shot 2564-09-17 at 13.05.59](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/2/8/28e9f19cbc5c8304da009c13f026b5c126de3ece.png)

Thanks very much for your help though, I really appreciate it!

---

<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:15pm UTC](https://community.thunkable.com/t/problem-with-conditition-to-fill-out-all-text-boxes/1506283/16 "2024-11-08T13:15:14Z")

</div>


