Expand my Community achievements bar.

Save As Script for a Button

Avatar

Former Community Member
I am looking for the script to place on a button enabling it to save a .pdf form as a "Save As". Furthermore, I would like to have the form saved with a file name based upon the value of a specific field used on the form. Hopefully I am in the right forum to solve this.
2 Replies

Avatar

Former Community Member
Hi,



You will need Reader Extensions for this or users with Acrobat.



You can save the form data locally with:



xfa.host.exportData ("",0);



The first parameter is the file name. You will be able to use a field to specifiy the name. See the documentation on exportData.



loadData will load it into an empty form.



Good Luck



Philip Copeland

Avoka

Avatar

Former Community Member
Hi Scott,

Please refer to this post for this action:

http://www.adobeforums.com/cgi-bin/webx?128@@.3bbd42e4



You'll have to use a "trusted function" and place this in a javascript file in a certain folder on the users computer.