Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Helping on save as button and send to button (rename file)

Avatar

Former Community Member
Hello,

I made a form comprising a button `send by mail. I will like by clicking on this button to rename my form by xxxxxx.pdf and I will like that this form is not modifiable any more by the person who will receive it. Somebody could help me on the syntax of the codes to be used.

I will also like to create another button which will enable me to open the dialog box save as .

Thank you for your assistance.
1 Reply

Avatar

Former Community Member
1. Changing the filename - this is not possible - the filename that is used will be the same as the filename of the PDF that is opened.



2. To lock all of the fields down I have a script that does that. If you post your email address I will send you the sample.



3. The saveAs dialog can be invoked by using this command:



app.execMenuItem("SaveAs");