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
John King20John King20 

How to Download a PDF Attachment in formula field

Hi,
I have a formula field for Attachment as follows
HYPERLINK('/servlet/servlet.FileDownload?file=' + Id, 'View',"_blank")

When the Attachment is of type .docx it downloads however when it is a PDF it opens in a new tab. Is it possible to make this happen. I've tried the settings in File Upload and Download Security also.

Thanks for any assistance.
VinayVinay (Salesforce Developers) 
Hi John,

Do you see similar issue in another browser?  Are you using chrome?

Thanks,
John King20John King20
Hi Vinay, yes using Chrome. I tried the chrome settings and this resolved the issue. Thanks