# Prevent user from typing spaces

**URL:** <https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777>\
**Category:** Questions about Thunkable X\
**Created:** [October 13, 2018, 4:50pm UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777 "2018-10-13T16:50:49Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 13, 2018, 4:50pm UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777/1 "2018-10-13T16:50:49Z")

</div>

Hey, I wanted to know if there was a way to prevent the user to enter only spaces in a textinput. Thanks !

---

<div class="post-metadata">

**Author:** ![clement\_pignet](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/clement_pignet/32/4485_2.png) [@clement\_pignet](https://community.thunkable.com/u/clement_pignet)\
**Post date:** [October 13, 2018, 6:06pm UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777/2 "2018-10-13T18:06:05Z")

</div>

You can replace text when user it button then  
Replace text of textbox « » (Space) by empty string

---

<div class="post-metadata">

**Author:** ![AcrobatEpee](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/acrobatepee/32/26336_2.png) [@AcrobatEpee](https://community.thunkable.com/u/AcrobatEpee)\
**Post date:** [October 13, 2018, 6:19pm UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777/3 "2018-10-13T18:19:55Z")

</div>

It will save the value he entered without spaces right ?

---

<div class="post-metadata">

**Author:** ![clement\_pignet](https://sea1.discourse-cdn.com/flex015/user_avatar/community.thunkable.com/clement_pignet/32/4485_2.png) [@clement\_pignet](https://community.thunkable.com/u/clement_pignet)\
**Post date:** [October 13, 2018, 6:32pm UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777/4 "2018-10-13T18:32:45Z")

</div>

True!

But you can add blocks like :  
If textbox text is empty then show a notifier

---

<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:55am UTC](https://community.thunkable.com/t/prevent-user-from-typing-spaces/51777/5 "2024-11-08T11:55:09Z")

</div>


