^ example of the default form module usage in a template. Simply modify the data
If you want to have the same form but want to decide if you'd like to display it or not on a page, add a checkbox or choice column(options: true/false) to your hubdb and use it in an if-statement around the module/embed code
Want to add a form to your pillar page? Here are two easy ways: Option 1: Same Form in the Same Spot on Every Page
If you're using the same form in the same place across all pillar pages (like in the sidebar or at the bottom), you can just add it directly to the page template.
How to do it:
If you’re using a coded template, a developer can drop in a few lines of code with the form’s ID (HubSpot gives you this ID when you create the form).
If you’re using a drag-and-drop editor, just:
Open the form in HubSpot.
Click "Share" and copy the embed code.
Add a custom HTML module to the page and paste the code in.
That’s it — the form will now show up on all pillar pages using that template.
Getting your HubSpot form onto a pillar page is totally doable. The exact method depends on how your pillar page is built:
If you're working with HubSpot-hosted pillar pages, the smoothest way is usually to drag in a form module or use your theme’s built-in tools, most themes have an easy way to drop a form right into your layout.
Or you can create a custom module and add a form field there.
If you’re working outside of HubSpot, like on a WordPress or Webflow site, you’ll want to grab the embed code from your form’s "Share" tab in HubSpot, then paste it directly into your page's HTML (or into a code block if your builder has one).
Be cautious when pasting into a rich text editor, as it may not always load scripts properly.
If you’d like a custom module tailored to your design or layout, I’d be happy to help build that for you as well.
Hi, I am using hubspot's built in dynamic pages, so the options you just mentioned would work if my pillar page was a normal page but hubspot's dynamic pages especially the pillar pages, are not available in the page editor. Correct me if I'm wrong
^ example of the default form module usage in a template. Simply modify the data
If you want to have the same form but want to decide if you'd like to display it or not on a page, add a checkbox or choice column(options: true/false) to your hubdb and use it in an if-statement around the module/embed code
it depends on your setup. If your pillar page is build in HubSpot you can
use the default form module
use a theme specific form module
create a custom module with a form field (as of now custom modules don't support multi-step forms)
paste the form embed code into the source-code view of a rich-text (not recommended).
If you want to embed a HubSpot form on an external page, the best way is to copy/paste the embed code. Depending on your external setup you can either paste it in the source-code view of a rich-text or into a codeblock (if you have something like this)