Level 1
Level 2
Sign in to Community
Learn more
Sign in to view all badges
Expand my Community achievements bar.
This conversation has been locked due to inactivity. Please create a new post.
Solved! Go to Solution.
Try the below in the change event of the control.. Language needs to set to Java Script..
if (xfa.event.change.match(/[a-z\A-Z\'\-\,]/) == null) xfa.event.change = "";
Thanks
Srini
View solution in original post
A version that also handles pasting (place it in the field's change event):
xfa.event.change = xfa.event.change.match(/[A-Za-z'-]*/)[0];
Note that your form fillers won't be able to enter digits or non-us chars, such as ü, å, ä ö, ñ.
Views
Likes
Replies
Like