Solved! Go to Solution.
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Views
Replies
Total Likes
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
Replies
Total Likes
Views
Likes
Replies