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

Validation

paulahmex
Registered: Aug 30 2007
Posts: 4

I created a PDF form, with LiveCycle, I want to validate Text Fields, where the user enter alpha characters plus special characters, by example (~,#,",_,space, /,\).
 
How can I do that..?

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
There are two ways to validate a text fields. First, LiveCycle documents use a formatting string called the "Picture Clause", and there is a reference for it on this page.

[url=http://partners.adobe.com/public/developer/xml/index_arch.php]http://partners.adobe.com/public/developer/xml/index_arch.php[/url]

You can validate a complex pattern with the Picture Clause and display a message to the user through the "Objects/Data" tab in LiveCycle.

The ogher method is to use JavaScript in the fields "Validation" Event. To do this you'll need to learn how to use JavaScript and Regular expressions.

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