Click to download a PDF in resources library


#1

Hi @Daniel,
Thanks for this helpful guidance. I have used:

<a href="${resourcesFolderName}/file.pdf" download="">Download this panel</a>

for downloading directly - and it works fine - but only when clicking on the actual words “Download this Panel”. How can I adjust the code to make the shape element itself be clickable?

Thanks!


Displaying PDFs within your Tumult Hype Documents
PDF download - odd behavior in Windows 10
#4

In the inner HTML of your element, paste this to make the whole thing a link to your PDF:

<a href="${resourcesFolderName}/file.pdf" download="">
  <div style="width:100%;height:100%;">
  </div>
</a>

It’s just a big div hreffed.