1 Reply Latest reply on Aug 14, 2011 7:22 AM by try67

    Specifying Filename for SaveAs Dialog


      There are lots of threads out there about creating JavaScript to create a unique filename and then automatically save the file with a button click. However, I have a simpiler question. I don't want to automatically save. I want the button to open the SaveAs dialog just like with app.execMenuItem("SaveAs"). However, I would like to know if I can set the filename that would appear by default.


      I want the user to have the option of changing the file name, path, etc. with the dialog, but I do not want the current file name of the form to be the default that comes up. The form is too easily overwritten.


      As an aside, I tried making the file read only. The result is that the file remains unchanged, but the SaveAs dialog displays no error message and acts like it saved the file.


      Any ideas? Thanks for the help.