[Solved] Blank text input gives error

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
Farhadtext input

Hi, @farhadkubd1! :wave:

In the text category of blocks, there is a dedicated block for checking empty text -
image

Using this would be like -

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

Thanks! :blush:

2 Likes

Thanks… It is working…:slightly_smiling_face:

1 Like