How to prohibit letters in text input thunkable

how to prohibit letters in text input thunkable???

Hi and welcome to Thunkable!

Do any of these options work for you?

image

If not, it’s possible but not ideal to check each time the text input’s text changes and if the change (last character typed) is found in A-Z or a-z, remove the last letter of the text input’s text using substring blocks.

ok, but is there anycode???
I need to turn off the letter in text input I need only numbers, I need only 1 2 3 4 5 6 7 8 9. I need write only numbers, if i will write a b c d e f g h i j k l m n o p q r s t u v w x y z i need turn it to “0”

As Tatian pointed out above, there is probably some logic you could write here so that when the text is entered, you can check for the last character entered and if it does not “valid”, you can remove the last letter and maybe add in some sort of error handling to let the user know why the last letter was just removed.

I gave you a suggestion to try. You can experiment with blocks and post your results here for more help, pay someone to code it for you, or contact Thunkable Support if you have a Pro or better license.

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