Jump to content

beattystandley

Member
  • Posts

    1
  • Joined

  • Last visited

Everything posted by beattystandley

  1. I used the code that Perp provided (thank you!) and made sure that my file was named correctly. When I'm viewing the page as a visitor, it doesn't start a download. It just opens a new tab. I need it to download because this form does not have the same functionality when viewed with browser's automatic pdf viewer. Here's the code updated to reflect my file name: <script> var link = document.createElement('a'); link.href = '/s/ca81622nd.pdf'; link.download = 'ca81622nd.pdf'; link.dispatchEvent(new MouseEvent('click')); </script> Am I missing a step somewhere? If not, anyone know how to do this? I don't need it to be a part of a form. I'm just not sure how to create a download link in squarespace.
×
×
  • Create New...

Squarespace Webinars

Free online sessions where you’ll learn the basics and refine your Squarespace skills.

Hire a Designer

Stand out online with the help of an experienced designer or developer.