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

Button - File path

Angelina
Registered: Jul 6 2010
Posts: 4

Hi all

I have an internal form that employees need to complete when there is a customer complaint, but what i want the document to do is when they click on a Save Button which i've created an action for with Action builder to open up the Save As box with the specific Network path file and folder so that way no one can save the document in an incorrect place.

When i look at the code, this is what it looks like. So is it possible to specify a file path?

//+ Type: Action
//+ Result1: SaveForm()
//+ Node1: form1[0].#subform[7].Button2[0]
//+ Condition1: Button("$Node1","click")
//+ ActionName: Button2.click
app.execMenuItem("SaveAs");
//-

Hope you can help.

thanks.

My Product Information:
LiveCycle Designer, Windows
thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Unfortunately you can't preset the save dialog location:( But something you can do is to save to a specific location without the save dialog popping up. A silent save as we call it. However, the silent save is a privileged operation. Acrobat won't let a script in a PDF do it, except under special circumstances. So, to do it you'll need to install a folder level script onto each user's system.

The details are explained here:
http://acrobatusers.com/tutorials/how-save-pdf-acrobat-javascript

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

Angelina
Registered: Jul 6 2010
Posts: 4
bummer... oh well... i'll just create a dialog box that prompts them where to save the document....

thanks!