Click to download a PDF in resources library

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!

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.

1 Like