I am attempting to add a javascript to validate a phone number in a form. Where is the best place to put it?
Under Properties, would it simply be under the Validate tab or the Action tab (creating a Mouse down to trigger the script?).
I am no javascript guru but I found a nice script, courtesy of Steve L. Walker. I can't seem t get it to work. Also, when does javascript normally kick in, as the user begins typing or upon exiting the field?
A validation script needs to be in the Validate tab, under Custom. However,
the script you found will not work as-is in a form created in Acrobat. It's
a script for a form created in LiveCycle Designer.
Buy why do you need a script, anyway? There are very easy to use built-in
options for enforcing a telephone number pattern under the Format tab.