Automatic detection of letters in text input

hey guys! hope everyone is doing well.
in my text input i want to make sure that the only thing the user can input is letters. I know how to do it manually by saying if text input text contain a or text input text contain b, etc. But is there another faster way to do this? Is there a block that say if text input text contains letters?

thanks!

Here’s a better way:

  1. Create a variable and set its value to the text string “abcdefg…” (all the letters). If you need to, you can include uppercase letters as well.
  2. Loop through each character in the text input’s text. If the variable does not contain the character, then they have entered an invalid input and you can exit the loop.

hi tatiang. thanks for the reply. could you explain to me what you mean by a loop? thanks

A loop is a standard programming term. In Thunkable, it’s represented by one of these blocks: Control Blocks | Thunkable Docs.

If you Google loop through word Thunkable, you’ll find several forum posts that discuss how to do this.

1 Like