Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Adobe Summit 2023 [19th to 23rd March, Las Vegas and Virtual] | Complete AEM Session & Lab list

Save As Script for a Button


Not applicable
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


Not applicable

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

You can save the form data locally with: ("",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



Not applicable
Hi Scott,

Please refer to this post for this action:

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