+ 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