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

Required Fields before saving

lylesj
Registered: Sep 15 2009
Posts: 11

I have created a form in PDF Converter Professional and there are several Text Fields that I need to be required before saving the form. What is the best way to go about this? Will I need to create a Save Button or can this be done by simply using the save option on the toolbar?

My Product Information:
Acrobat Standard 9.1.3, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Is this form going to be filled in by Users in Adobe Reader? If so then you'll also need to enable it with Save Rights, which you can only do from Acrobat Pro.

If a form is savable, then there is nothing that can be done (baring special Policy Server Enabling) to stop the user from saving it. You can however add a "WillSave" script to the form that will test the required fields and give the user a friendly popup message letting them know that they are not finished. You can also place a visible indicator on the form, such as a watermark that makes it obvious that the form is not complete. I'm not sure (because Adobe keeps changing it) but I don't think you can add a WillSave script with Acrobat Standard.

There's an example file and a video of doing this for the "WillPrint" event at [url=http://www.pdfscripting.com/public/programs/downloadsearch.cfm?StartRow=16&searchtype=simple&searchmode=cat&keywords=All%20Files%20in%20Form%20Scripting%20Category&cat=Form%20Scripting&sortby=name]www.pdfscripting.com[/url]. This is a subscription site so it's not free:( I'm currently working on form level validation examples for the "WillSave" event, which is exactly what you're asking about.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