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

validate numeric field

patra
Registered: Oct 19 2006
Posts: 270

How I can validate a numeric field so a user will be able to enter only 9 digits?
is it possible In case user enters more or less than 9 digits a message to come up to warn them for wrong input!

Thanks

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Look on the Object tab for the field. There is a Patterns button. Use this to set the edit and validate patterns. And on the validation tab set the validate message.

Thom Parker
The source for PDF Scripting Info
[url=http://www.pdfScripting.com]pdfscripting.com[/url]

The Acrobat JavaScript Reference, Use it Early and Often
[url=http://www.adobe.com/devnet/acrobat/javascript.php]http://www.adobe.com/devnet/acrobat/javascript.php[/url]

Then most important JavaScript Development tool in Acrobat
[url=http://www.pdfscripting.com/public/34.cfm#JSIntro][b]The Console Window (Video tutorial)[/b][/url]
[url=http://www.acrobatusers.com/tutorials/2006/javascript_console][b]The Console Window(article)[/b][/url]

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script