I have a text field set up as a phone number field, with the following in the change event to accept numbers only:
xfa.event.change = "";
In the Pattern validation, I have this mask on all tabs (Display, Edit, Validation and Data):
I want the user to be able to just enter numbers and have the parentheses and dash added automatically ["(123)-456-7890"].
Thanks for any help.
Solved! Go to Solution.
That worked, thanks! The only change I made was to insert "10" instead of "9" for the phone digits.
if (this.rawValue.length != 10) xfa.host.setFocus(this);