Help Center

Troubleshooting routing from HubSpot Forms

Updated March 13, 2026·1 min read
Available to Owners and Admins on Teams and Enterprise plans.View plans

Having trouble with Calendly routing and HubSpot forms? This guide shows common issues and how to fix them.

HubSpot form redirects to a "Thank you" page instead of the booking page 

If your HubSpot form doesn’t take invitees to the Calendly page, check which type of form editor you’re using in HubSpot.

Troubleshooting HubSpot forms and Wix

Calendly routing script doesn’t work on Wix

If nothing happens after pasting the routing script on your Wix site, check the following:

  1. Make sure you’re using the paid version of Wix. The free version doesn’t allow custom code outside an iframe.
  2. Paste the following code in the Custom Code/Body-start section in Settings:
<!-- Calendly inline widget begin --><link href="https​:​//assets-​staging.ca​lendly.com​/assets/ex​ternal/wid​get.css" rel="stylesheet"><script type="text/javascript" src="https​:​//assets-​staging.ca​lendly.com​/assets/ex​ternal/for​ms.js" async></script><!-- Calendly inline widget end →

Invitees close the popup and don’t return to the form

If someone closes the Calendly popup before booking, you can redirect them back to a page of your choice.

  1. Add this redirect snippet to your page:
constcallback = (mutationList, observer) => {for (constmutationofmutationList) {if (mutation.type === 'childList') {mutation.removedNodes.forEach((removedNode) => {if (removedNode.className === 'calendly-overlay') {window.open('https​:​//calendl​y.com', '_self')      }    })  }}};constobserver = newMutationObserver(callback);observer.observe(document.getElementsByTagName('body')[0], { childList:true });
  1. Replace the Calendly URL with your preferred redirect page.
  2. Find the line Calendly.Calendly.initHubSpotForm({ url: ... }) and add this code:
<!-- Calendly routing form code begin --><linkhref="https​:​//calendl​y.com/asse​ts/externa​l/widget.c​ss"rel="stylesheet"><scriptsrc="https​:​//calendl​y.com/asse​ts/externa​l/forms.js"type="text/javascript"async></script><scripttype="text/javascript">window.addEventListener('load', () => {Calendly.initHubSpotForm({ url:"..." })<Add the code snippet here> });</script><!-- Calendly routing form code end -->
Was this article helpful?
Let us know so we can improve our content.
Related articles
Menu
Popular articles