These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

Leading 0's with hypen

lsilacci
Registered: Mar 7 2008
Posts: 11

I am using Acrobat 9 and need to have a form field that restricts the user to input like following sample:

006-138-06-1

Kinda like a social security number...but the number (and each segment can have leading zero's) will always be 3 characters - 3 characters - 2 characters - 1 character.

Any ideas?

My Product Information:
Acrobat Pro 9.2, Windows
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
You can create a custom format string if all of your users have version 8 or above.

If your users have versions prior to version 8, you will need to use the RegExp object to create custom format script, custom keystroke script, and a custom validation script.

George Kaiser