Web interface: Prevent spaces in field (Texbox component)


In webdesigner for v8.1.1 I need a data field with no spaces at all. How could I inhibit the space keystroke when the field is being edited? 

I'm using a Textbox mapped to a single row collection and configured the number of columns in the textbox component to 1 , to no avail. I could also remove all spaces after the focus has been lost, but I cannot find a way to achieve it , so  "on the fly" the field would lose all the spaces.  It will work like a database column template in Designer, but in this case there's no database field that I can map the textbox to.

I'm sure this is an easy one, but I'm completely stuck. 

Have a nice weekend!