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

Validating form fields

electrodivanyc
Registered: May 8 2007
Posts: 2

I'm a designer who is new to creating forms in Acrobat. I'm currently using Mac Acrobat Pro 7.0 to add form fields to a client's existing PDF. They want patterns to be auto-corrected - and they also want some special formatting - like for phone numbers to have "-" automatically entered in (###-###-####). Same thing with SS #, and custom patterns for particular ID # fields, etc. (like XX-######)

There seems to be only limited control over text fields in Acrobat 7 pro. Under the text field properties, for example, - I set the format to "phone number" and save - but this seems to do nothing when I close, open in Preview, and fill out the form. I can actually add anything I want in there and in any pattern. What am I missing? Do I need a custom validation script? Do I need to upgrade to 8.0 (does the new version have more options for form fields and some kind of built in validation script)? I'm kind of out of my element here.

There is nothing else interactive going on with this form, BTW. It will be on a CD and the user will fill it out - print it and fax it (yes - I know it can do a lot more - but the goal is to have the forms neatly filled out to prevent errors - the end users are low technology people sometimes without net access.)

Thanks for any help.

-Tory

carrimak
Team
Registered: Dec 13 2006
Posts: 165
This can be done in Acrobat 8 professional.

Select the Text Field tool; and set up your field.

Then; under Properties; select Formatting.
Then, select "Special" and under that tab is a phone number choice.

When you select that, it will add parentheses around the area code, and put the hyphen where that suppposed to go.

Hope this helps!

carrimak

Acrobat is probably the program I use most often and I'm learning more every day.

Meabh
Registered: Feb 24 2006
Posts: 20
The same instructions should also work for AA7 Pro for controlling the field properties...

Meabh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
Follow the links in ERGENT variable.split() for examples as to what can be done with the "custom format" option and custom validation scripts.http://forum.planetpdf.com/webboard/wbpx.dll/read?156740,34

The examples use RegExp to evaluate keystrokes, format the display and validate the entered data. The ISBN allows both the 10 digit and 13 digit numbers and uses the appropriate check sum in the validation script and the phone number determines which phone number display to use by the value of the entered exchange..

George Kaiser