Changing a file description to "Download" link in view - Problem with files not uploaded

Changing a file description to "Download" link in view - Problem with files not uploaded

Hi,

I have an "Attachment" file upload field in one of my forms where users can upload a file. In the relevant view, it was displaying the filename, which was not what I wanted, preferring a simple "Download" link.

To do this, I created a "Document" formula field with the following formula: 
  1. "<a href='/DownloadFile.do?filepath=/" + Attachments + "&sharedBy=" + zoho.adminuser + "&appLinkName=" + zoho.appname + "&viewLinkName=Open_Disputes'>Download</a>"

I then display this "Document" field in the view instead of the "Attachment" field.

This works fine, but there is a problem: it adds a "Download" link even when there are no uploaded documents.

I have tried a conditional formula in the "Document" field to show nothing when "Attachments" is empty, but I cannot get any results. Could you give me a tip on how to rewrite the formula so that in the view it remains blank when there is no uploaded file, and it shows a "Download" link when there is an uploaded file?