Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
How do I set up a text field to only allow alpha characters? Is there a java script for this?
You can use a validation pattern, but this will not stop anyone from entering a non alpha character.
Hi,
you can use a regular expression to filter the values during the change event.
This will only allw to enter characters in the range a-z and A-Z.
if (!xfa.event.change.match(/[a-zA-Z]/g)) { xfa.event.change = "";}
if (!xfa.event.change.match(/[a-zA-Z]/g)) {
xfa.event.change = "";
}
Views
Likes
Replies