Expand my Community achievements bar.

populate save as dialog box with predefined filename

Avatar

Former Community Member
I have a button in a form that when click, pop up a 'save as' dislog box. The java script command is as



app.execMenuItem("SaveAs");



How can I populate a pre-defined filename to the dialog box?

Thank you.
3 Replies

Avatar

Former Community Member
You cannot ...the user has to pick the filename that they want to save. This stops you from doing a programatic save without the user knowing it (a security concern).

Avatar

Former Community Member
Thank you. Is there any work-around? Can I copy a filename to clipboard from the pdf form and user just need to paste it into the 'save as' dialog box.

Avatar

Former Community Member
Nope ...no programatic access to clipboard from Acrobat/Reader. The only way you can do this is to certify the form - which has its own set of issues (mostly management of certs).