Answered
I want to create a custom format Javascript that will convert a string of 9 letters or numbers (or comination) upon entry to a format such as XXX-XX-XXXX (like a Social Security number only it will allow letters also). I would also like the letters to be automatically capitalized.
Thanks for your help!
-Kristin
Go to the field's properties (Rt Click, choose Properties). In the Format tab choose Special and select "Arbitrary Mask." You can look up arbitray mask in the Acrobat help file to see what is available, but for what you want use OO-OOO-OOOO ( letter O, not zero). Then in the Validate tab check the Run Custom Validation script, click the Edit button and enter this line of code-
event.value = event.value.toUpperCase();
Hope that helps,
Dimitri
WindJack Solutions
www.windjack.com
Dimitri Munkirs
WindJack Solutions
pdfscripting.com