function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
maxforcemaxforce 

Dynamic file name while saving PDF doc

I created an output document which renders as PDF, when the user is trying to save the output document, by default it gives the file name as VisualForce Page Name in the Save Window. But the user needs the current date/time to be populated as the file name in the Save Window before clicking on Save. How to acheive it? 

 

I can attach the output document to the Attachments of the object with desired file name but that doesn't solve the requirement. Please suggest.

 

Thanks in Advance.

SimbaSimba

Hello,

 

We have a similar requirement where we would like to default the file name with Salesforce Id of the record upon Saving. I was wondering if you were avle to find any solution to this.

 

Thanks