[Solved] Textfield getting validation for space !
I am having a textfield in the form panel with required config set to true. The form gets submitted if I enter black space, however it shows proper validation message if I don't enter anything and try to submit.
My requirement is like :-
Valid : "aaa", "aaa bbb"
Invalid : " "
So you are looking for this?
Its difficult for the user to type in as it keep on croping the last space while the user is typing...
You could switch the validationEvent from 'keyup' to false (validateOnBlur is still true).
thanks for the help condor....
Currently i am not worrying about the end space character/s. So the code :-
done the trick.
Another option is to add the following regular expresion to validate that there is something other than spaces in the value.