---
title: "Adding Routing Forms to Your HubSpot Website"
description: "Adding a routing form to your HubSpot website is quick and easy."
url: "https://help.staticso2.com/human-engagement/routing-forms/sharing-embedding/adding-routing-forms-to-your-hubspot-website"
---

Adding a routing form to your HubSpot website is quick and easy.

Caution

Adding custom JavaScript requires a HubSpot paid plan with access to website pages and custom modules.

## Add a routing form to your website

[Section titled “Add a routing form to your website”](#add-a-routing-form-to-your-website)

### Create the routing form

[Section titled “Create the routing form”](#create-the-routing-form)

1. Go to **Routing forms** on the left.
2. Click on the **Create routing form** button OR duplicate another form by clicking the three dots menu for that form and selecting **Duplicate**.

[**Create the form**](https://help.staticso2.com/human-engagement/routing-forms/introduction-to-routing-forms/creating-routing-form) as you prefer, either duplicated from another, from scratch, or using a template.

When you’ve added the interactions you want, routed them, and designed the form as you like, navigate to the **Embed on website** tab.

### Install the code

[Section titled “Install the code”](#install-the-code)

#### In OnceHub

[Section titled “In OnceHub”](#in-oncehub)

You’ll grab the code you need for HubSpot.

1. On the **Embed on website** tab, pick a color for your routing form, then select **Get the code**.
2. Copy the code.

![](https://help.staticso2.com/_astro/fo-publish-copy.C43Ifa4b_Z1cD0CL.gif)Figure 1: Copy the embed code

#### In HubSpot

[Section titled “In HubSpot”](#in-hubspot)

To add custom JavaScript, you need to create a custom module with JavaScript required for loading. You’ll add this module on each individual website page where you want a form.

1. [**Create a custom module**](https://knowledge.hubspot.com/design-manager/create-and-edit-modules) that includes the OnceHub code.
2. Adjust the code as needed (for instance, the text for the link).
3. Make sure the module uses the [**require\_js function**](https://developers.hubspot.com/docs/cms/building-blocks/modules/files#require-js). This will require the JavaScript to load for that module to work.
4. Add the custom module to your website page wherever you want it to display.
5. Save your website.

That’s it! Your website can now display your routing form in the place you added it.
