Disable spaces in text field?
-
Hey,
I have had issues with an e-mail login form - which when I auto fill the word I have a space added onto the end and receive the error "Badly formatted e-mail address".Is there a way I can remove the ability to have spaces in that particular text field so this issue wouldn't occur for my users?
-
Hey,
I have had issues with an e-mail login form - which when I auto fill the word I have a space added onto the end and receive the error "Badly formatted e-mail address".Is there a way I can remove the ability to have spaces in that particular text field so this issue wouldn't occur for my users?
Hi and welcome to devnet forum
Different QValidator can help to limit the input possibilities for fields. In particular QRegularExpressionValidator is suitable in your case.