• Hello Support

    I am facing a issue with the HubSpot form script. I am using a Newsletter form with HubSpot script but my form is not loading on desire page.This is my page url ( https://www.quickanddirtytips.com/newsletters ) where I want to load the form using the HubSpot script.
    its my HubSpot script-



    <script>

      function loadHubSpotForm() {

        if (window.hbspt) {

          hbspt.forms.create({

            region: "na1",

            portalId: "39563437",

            formId: "c9f79cf5-1b36-49dc-a57f-171ba8c78097"

          });

        } else {

          console.error("HubSpot script did not load properly.");

        }

      }

      let script = document.createElement("script");

      script.src = "https://js.hsforms.net/forms/embed/v2.js";

      script.charset = "utf-8";

      script.type = "text/javascript";

      script.onload = loadHubSpotForm; // Ensure it runs only after loading

      document.head.appendChild(script);

    </script>


    Please check my issue and update as soon as possible.

    The page I need help with: [log in to see the link]

Viewing 9 replies - 1 through 9 (of 9 total)
  • Thread Starter gauravsingh12

    (@gauravsingh12)

    Hello Team,

    Any update regarding my query? Please look and do the needful.

    Thanks

    Plugin Support harthur1990

    (@harthur1990)

    Hi @gauravsingh12 , thanks for your message

    Please note we are responsible for the plugin implementation of forms. e.g. Gutenberg block and Elementor widget. So we can not always guarantee support for custom implementations of the forms embed code

    now could you try

    <script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
    <script>
    hbspt.forms.create({
    region: "na1",
    portalId: "39563437",
    formId: "c9f79cf5-1b36-49dc-a57f-171ba8c78097"
    });
    </script>

    Best regards

    Thread Starter gauravsingh12

    (@gauravsingh12)

    Hello

    This is not custom implementation. This script provide by the HubSpot plugin which is not working properly in my website. Its work some time and some time not. I am already using this script.


    Plugin Support harthur1990

    (@harthur1990)

    Are you using a Gutenberg or a elementor block?
    Could you point to me where did you copy this code from?
    Did you tried with the code snippet I’ve shared?

    Best regards

    Thread Starter gauravsingh12

    (@gauravsingh12)

    Hello

    Yes i am using the elementor block (HTML Code) and copy this script in “html code” block.
    any issue with elmentor block.

    Thanks

    Plugin Support harthur1990

    (@harthur1990)

    HTML Code would be considered a custom implementation, since our plugin offers a Hubspot Form elementor widget, have you tried using this instead?

    Did you tried with the code snippet I’ve shared within your HTML Code?

    Thread Starter gauravsingh12

    (@gauravsingh12)

    Yes i have used the script with HTML Code.
    Please tell me the Hubspot Form elementor widget name.

    Plugin Support harthur1990

    (@harthur1990)

    The widget is called HubSpot Forms, if you don’t see it please make sure you have the plugin connected

    Best regards

    Thread Starter gauravsingh12

    (@gauravsingh12)

    HubSpot connected?

    • This reply was modified 9 months, 3 weeks ago by gauravsingh12.
Viewing 9 replies - 1 through 9 (of 9 total)

The topic ‘HubSpot form is not loading’ is closed to new replies.