Totally wrong form being published to website

Hi there,

I have a landing page ive created that includes a form. The form is a clone of a different form with slightly different parameters/contents in the form. When I view the landing page in the page editor the form looks correct, when i preview the page in hubspot, the form looks correct, but when I publish the page, the form on the published live page is the originial form, not the clone/updated one.

I’ve tried cloning the page without a form attached and readding the cloned form, no luck same result. I’ve removed the form and readded it on the original page as well, same result.

I cannot figure out what is causing the page to display the original form on the live page, but no where else in hubspot itself.

It sounds like (at first) this is a cache issue. I’m going to assume this is using HubSpot’s COS.
Initial things to try:

1. Hard Refresh & Cache Issues

  • Test: Open the published page in an incognito/private window or a different browser.
  • Test: Manually append a cache-bypass parameter:
    • Example: https://yourpage.com/?hsDebug=true
    • If this forces the correct form to appear, then HubSpot or your browser was serving a cached version.

2. HubSpot’s Form Module Not Updating

  • Issue: Even though you updated the form inside HubSpot, the page may still reference an older version.
  • Fix: Try removing the entire form module, save and publish the page without any form, then add the form again and republish.

3. Check the Form ID in Page Source

  • Issue: Your landing page may still be referencing the old form’s ID.
  • Test:
    • Right-click on the published page and Inspect Element (Ctrl + Shift + I on Windows, Cmd + Option + I on Mac).
    • Search (Ctrl + F) for “form-id” and compare it to the ID of your cloned form inside HubSpot.
    • If the wrong form ID is appearing, the module isn’t updating properly.
  • Fix:
    • Delete the form module, republish without any form, then add it back and republish again.

4. Embedded Form vs. HubSpot Form Module

  • Issue: If you’re using an embedded JavaScript form (<script> tag), it may still be pointing to the old form.
  • Test:
    • If your form is embedded via HubSpot’s embed code, check that it’s pulling the correct form.
  • Fix:
    • Delete the embed code, republish, then re-add the new embed code.

5. HubSpot CDN Delay

  • Issue: HubSpot uses a CDN (Content Delivery Network) that caches live page versions.
  • Fix:
    • Make a small change to the page’s content (like adding a space in the text), then save and republish.
    • This often forces HubSpot’s servers to refresh the live version.

Hi @RMobley

Sounds like a caching issue to me.

Have you tried looking at the published LP with the new form in an incognito window?

Frank

I have indeed tried opening on an incognito browser and clearing my cache, shouldve mentioned that. Same issue.

I ended up creating a totally new form instead of using the cloned one and that solved my issues.