If the HubSpot form you've embedded on an external page isn't working, is getting cut off, or doesn't look correct, confirm that the embed code on your external page is correct.
- In your HubSpot account, navigate to Marketing > Files and Templates > Files.
- Click the name of the form.
- In the upper right of the form editor, click Share.
- In the dialog box, click Copy.
- In your browser, navigate to Diff Checker, a text comparison tool. In the Original Text section, paste the form embed code.
- Right-click anywhere on the external page and select View page source. Locate the form embed code on the page and copy it.
- Navigate back to Diff Checker. In the Changed Text section, paste the externally embedded code.
- Click Find Difference to look for missing or broken code.
If the externally embedded code is incorrect, re-embed the correct code on your external page.
If your form is embedded on a WordPress page, there are two additional points to note:
- WordPress may convert '&' in the embedded form code to '&' which will break the functionality of the code.
If you see that WordPress is altering the embed code, use a third-party plugin (e.g., Insert HTML Snippet) to add the form to the page or post in the form of a shortcode to preserve the script tags.
If your form is embedded on a SquareSpace page, the form may not work because in certain templates, SquareSpace renders scripts only upon the first page load and not subsequently. Check out this SquareSpace post for more details and possible workarounds.