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?


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%;">

It’s just a big div hreffed.

1 Like