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

script to customize button event - "Save"


Not applicable
I am trying to create a "Save" button but am very new at creating JavaScript. What I want to do is add a button on a form that allows form fillers to save the form without having to go to the File Menu-Save or-Save As.

I have selected Click in the Show list, chosen JavaScript for the Language box and Client for the Run At box. But I don't know the script to have the button open up the Save dialogue box.

Application: LiveCycle Designer ES v 8.2 with latest upgrades

OS: MS Windows XP v 2002 Service Pack 3


Printer: HP Photosmart 8250
2 Replies


Level 10

You should check out this thread

There are difficulties, as it is a trusted function. You can get over this by having javascript in the Acrobat folder, but this won't work if the form is used on another computer which does not have the folder level javascript.

Good luck,



Level 10
You only need the trusted function route if you are trying to automatically add a file name.

Bringing up the Save As dialogue works fine with:


Add it to the mouseUp event in the script editor.


Level 10

Hi Jono,

Do you have any script for saving a PDF file that is inside a portfolio, out of the portfolio?

app.execMenuItem("SaveAs"); saves the portfolio itself. I am looking for a script to open the individual PDF in a new (separate) window and then save that file locally.




Level 10
Good catch Jono,

I had always avoided it, because I thought it would fall over without the folder level script.