Jump to content
  • 0

Download file instead of opening in



I have a file DataType that I am displaying as a link in the report page. I need to do is to be able to download any file regardless of the file type. I don't want to display anything. Just download. Now, if it is a image file, it is opening on the same tab instead of downloading it. Can you help?


Link to comment
Share on other sites

2 answers to this question

Recommended Posts

  • 0

Hi @Batchini,

What we can do to achieve your current workflow is to insert an HTML Block instead and call the File Field there as a link. You may refer to this screenshot: 4347722 

Here's the HTML code for the link download:
<a download='file' href="[@field:File_field/]"> Download Image </a>

Please note that you need to change the [@field:File_field/] based on what field do you have.

I hope this works now.

- Barbie

Link to comment
Share on other sites

  • 0

@Barbie Hello!  What would you put to just view the file?  So instead of downloading what is the syntax to view it? 

Edit:  I figured it out.  <a href="[@field:design_proof/]">View Approved Mailer</a>

What if I only what this link to be clickable if there is an attachment in the field?  So if there isn't a file attached to the record it wouldn't be clickable.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...