# How to prohibit letters in text input thunkable

**URL:** <https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425>\
**Category:** Questions about Thunkable X\
**Created:** [March 14, 2024, 4:42pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425 "2024-03-14T16:42:18Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![allaberganovkuvandik](https://avatars.discourse-cdn.com/v4/letter/a/b77776/32.png) [@allaberganovkuvandik](https://community.thunkable.com/u/allaberganovkuvandik)\
**Post date:** [March 14, 2024, 4:42pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/1 "2024-03-14T16:42:18Z")

</div>

how to prohibit letters in text input thunkable???

---

<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:** [March 14, 2024, 5:33pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/2 "2024-03-14T17:33:14Z")

</div>

Hi and welcome to Thunkable!

Do any of these options work for you?

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

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.

---

<div class="post-metadata">

**Author:** ![nixol.new.pc.b3q](https://avatars.discourse-cdn.com/v4/letter/n/c0e974/32.png) [@nixol.new.pc.b3q](https://community.thunkable.com/u/nixol.new.pc.b3q)\
**Post date:** [March 15, 2024, 7:42am UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/3 "2024-03-15T07:42:12Z")

</div>

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”

---

<div class="post-metadata">

**Author:** ![matt\_conroy](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/matt_conroy/32/150843_2.png) [@matt\_conroy](https://community.thunkable.com/u/matt_conroy)\
**Post date:** [March 15, 2024, 2:00pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/4 "2024-03-15T14:00:01Z")

</div>

> [@nixol.new.pc.b3q](#):
>
> 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.

---

<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:** [March 15, 2024, 3:05pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/5 "2024-03-15T15:05:13Z")

</div>

> [@nixol.new.pc.b3q](#):
>
> ok, but is there anycode???

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.

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex015/uploads/thunkable/original/3X/0/f/0f59f292712368bce16ff80133ae10de8a6f27e8.png) [@system](https://community.thunkable.com/u/system)\
**Post date:** [June 13, 2024, 3:06pm UTC](https://community.thunkable.com/t/how-to-prohibit-letters-in-text-input-thunkable/2893425/6 "2024-06-13T15:06:08Z")

</div>

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