I have an interactive on line form. I am trying to lock down a text field to Alph only. Where do I find this option.
Solved! Go to Solution.
Views
Replies
Total Likes
The following client-side JavaScript, attached to a text field exit event, will validate the characters a-z (ignoring case).
// form1.page1.subform1.firstName::exit - (JavaScript, client)
var regExp = /[^a-z]/i;
if (regExp.test(this.rawValue)) {
xfa.host.messageBox("First name can contain the characters a-z, only.");
}
Steve
Views
Replies
Total Likes
The following client-side JavaScript, attached to a text field exit event, will validate the characters a-z (ignoring case).
// form1.page1.subform1.firstName::exit - (JavaScript, client)
var regExp = /[^a-z]/i;
if (regExp.test(this.rawValue)) {
xfa.host.messageBox("First name can contain the characters a-z, only.");
}
Steve
Views
Replies
Total Likes