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

Validate Text Fields before Saving

Tapecon
Registered: May 29 2008
Posts: 4

I have created a form with multiple text fields that I need to have information entered into before one can save the file. I have set the text fields to required and have created a Save As button. What do I need to do so that the save button errors out when there is missing information or saves if everything is entered?

My Product Information:
Acrobat Standard 8.1.2, Macintosh
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
The "required" property is only checked when the "submitForm" method is used. Otherwise you will have provide the scripting necessary for clearingand testing this property. Even if one submits to a server you still might want to check this yourself as the submit process returns a rather cryptic messag or vaery unclear message to the user that there is a missing required field.

George Kaiser

Tapecon
Registered: May 29 2008
Posts: 4
Does anyone have a script to allow for this process?
gkaiseril
Expert
Registered: Feb 23 2006
Posts: 4307
See the funcion in [url=http://forum.planetpdf.com/wb/default.asp?action=9&read=56531&fid=34#154770]Submit if all fields are filled[/url]. Note you will have to deal with list and combo boxes.

George Kaiser