APIs & Integrations

Conner_Pope
Member

Embedding Webform Into Local Project

I have an HTML document on my computer that I put my hubspot form script into, but nothing appears. Why?

0 Upvotes
1 Reply 1
Dadams
HubSpot Employee
HubSpot Employee

Embedding Webform Into Local Project

Hi @Conner_Pope

The form embed code uses protocol relative URLs (//js.hsforms.net/forms/v2.js) for the source of the required JavaScript files. If you’re opening an HTML file in a browser and not running a local server, you’ll need to add the http: to the URL so that your browser isn’t also trying to load our JavaScript files from your local file system.

0 Upvotes