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

Saveas button script

ychs67
Registered: Mar 10 2008
Posts: 2

I need to create a "saveas" button in lifecycle that will make the user save the adobe file in a specific location and specific use the users name. I have multiple employees using the same form in 5 different locations. Can you help me with a formcalc script.

Thanks

My Product Information:
LiveCycle Designer, Windows
vinnyb1972
Registered: Jan 19 2010
Posts: 2
I have the same issue. Did you get a answer to this post? Thank you
radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
@vinnyb1972

There are several threads in this forum discussing methods to save PDF files with reader in specific directories.
Basically they describe how to create a folder level script that allows to save into a desired folder.

You can use the button "Search Formus" above and look out for them.
You also can find a post about on my [url=http://thelivecycle.blogspot.com/2009/11/save-form-to-specific-directories-and.php]blog[/url].

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs

Biffnet7
Registered: Dec 9 2009
Posts: 36
Hello.

Do you need a folder level script to be able to just have a (Save As) window show up with the raw.value of the text fields.

I do not want my files saved to a specific directory but I would like to have the (Save As) Window with some form field information included in the file name. It would work similar to the email script Radzmar created for the Submit Form to email PDF: http://www.acrobatusers.com/forums/aucbb/viewtopic.php?id=20345

This script is great for emailing a Forms to vendors.

Thanks

Biff

Allen

radzmar
Expert
Registered: Nov 3 2008
Posts: 1202
No way, the saveAs method is very very restricted for security reasons.
You can only call the save as dialog if you do not define the cPath-parameter, which includes the filename.
In this way the dialog uses the original file name.

var myDoc = event.target;myDoc.saveAs();

For all other actions with the saveAs function you need a folder level script.

radzmar
LoveCycle Blog
Documents you need:
LiveCycle Designer ES2 Docs