View Full Version : Downloads -> Form -> Download

11-29-2012, 11:08 AM

Basically I am trying to get our users to register before they download using Hubspot's smart forms. The code they gave me previously was HTML, so I just made a variable ($var=$INFO{'request'};) on the submit button which would send the user to their particular download after registering. ($var being the file name of the link they just clicked).

However the new Hubspot forms are in JavaScript and do not declare the hyper-link for the submit button. Ideally I would like to use one form for all the downloads. Below is the new Hubspot code which calls upon a JavaScript file.

<script charset="utf-8" src="http://js.hubspot.com/forms/current.js"></script>
portalId: 'ourportalID',
formId: 'ourformID'

Any help would be greatly appreciated.