on 03-03-2017 6:58 PM
Hello,
I have to validate a field of 4 characters in Javascript that could be a numeric or a character. The user cannot write a space.
I searched on the forum but I did not find the right syntax to do the validation.
if (xfa.this.rawValue.match(/[^A-Za-z0-9]\S\$/)) {
xfa.host.messageBox("Please enter alphanumeric only");
xfa.host.setFocus(this);
xfa.event.change = "";//
}
Could you please help me find the syntax?
Thank you in advance!
Marie.
User | Count |
---|---|
85 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.