Hi,

I'd like users to register before downloading any of our documents. If they have already filled in the form, then all the fields are hidden other than their email. Everything works OK, other than directing them to the download. We have Hubspot (Marketing Software) which allows me to make the forms and export the code, however they have recently changed from HTML to JavaScript. I need to pass over which document the user is trying to download. I did this with the old HTML form by using a variable.

e.g. (Old example)

manual.pdf -> Form -> manual.pdf download starts
setup.exe -> Form -> setup.exe

Code:
$var=$INFO{'request'};
hubspot button hyperlink=
Code:
www.ourwebsite.com/downloads/$var
However the new Hubspot code is:

Code:
<script charset="utf-8" src="http://js.hubspot.com/forms/current.js"></script>
<script>
  hbspt.forms.create({
    portalId: 'OurID',
    formId: 'OurFormID'
  });
</script>
As you can see, it does not declare the hyper link of the submit button. So my previous method doesn't work.

Any help would be greatly appreciated.