# \[Solved\] Blank text input gives error

**URL:** <https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885>\
**Category:** Questions about Thunkable X\
**Tags:** solved\
**Created:** [November 29, 2019, 4:47am UTC](https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885 "2019-11-29T04:47:29Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![farhadkubd1](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@farhadkubd1](https://community.thunkable.com/u/farhadkubd1)\
**Post date:** [November 29, 2019, 4:47am UTC](https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885/1 "2019-11-29T04:47:29Z")

</div>

Hello All, I have taken two text input as the below photo. It takes user input to my airtable data sheet. Here the problem is if user hit the submit button writing nothing in the input field it is creating a row.  
I have used if function like  
if (textinput=null)…print error. but it does not work. I think it is very small thing. Could i get a suggestion please?

Thanks  
Farhad ![text input](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/6/f/6f2684d92a9d78904b9d064b004dc5c42e47badf.jpeg)

---

<div class="post-metadata">

**Author:** ![kartik14](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/kartik14/32/44782_2.png) [@kartik14](https://community.thunkable.com/u/kartik14)\
**Post date:** [November 29, 2019, 4:57am UTC](https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885/2 "2019-11-29T04:57:50Z")

</div>

Hi, @farhadkubd1! 👋

In the `text` category of blocks, there is a dedicated block for checking `empty text` -  
 ![image](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/5/7/57c1c1db331bacfaa2e2041a86ecc3d5549ccd8e.png)

Using this would be like -

` if (isEmpty(textbox1)) {`  
` set Label1 text = "Empty box";`  
` else { ... }`  
` }`

Thanks! 😊

---

<div class="post-metadata">

**Author:** ![farhadkubd1](https://avatars.discourse-cdn.com/v4/letter/f/b38774/32.png) [@farhadkubd1](https://community.thunkable.com/u/farhadkubd1)\
**Post date:** [November 29, 2019, 6:27am UTC](https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885/3 "2019-11-29T06:27:06Z")

</div>

Thanks… It is working…🙂

---

<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:46am UTC](https://community.thunkable.com/t/solved-blank-text-input-gives-error/342885/4 "2024-11-08T11:46:36Z")

</div>


