hello, HTML custom module, seems to be bugged as it is not showing any content inside.
find a demo page here: https://content.welcometothearkage.com/demo
there should be an HTML element with a simple div inside, id=‘hubspot_support’ but it is not shown, it seems like the entire component is ignored
How do you work with this module? Is the html code embedded in the module.html or do you use a rich-text to have something like a HTML editor option while building pages?
Also does the console (bottom left) show something like this?
How do you embed the module into the page? Simply by drag&drop or via template?
Also something that might be causing an error(never experienced that but you never know):
Replace the quotes with double quotes like this:
seems to be the old HTML module that was available for download before the marketplace revamp last year(or the year before). If it’s the old HTML module it isn’t available anymore because HubSpot dropped the support of it for many reasons like security.
Therefore it might not work properly.
If you want to use this module often and have some sort of flexibility like showing different embeds based on your page you can create a custom module like this:
add a simple text(not rich-text) called “Fillout ID” as a function to the module and you’re good. The one thing that you’ll need to add to this module in the future would be just something like “32XsHk8Euhus” and it should work.
Also make sure that your embed code doesn’t require a JavaScript. Becuase if it requires a script it has to be placed somewhere in the page like
<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/embed/v2.js"></script>
{# ^ this is the script that is required so that the code below works properly #}
<script>
hbspt.forms.create({
region: "na1",
portalId: "XXXXXXXXX",
formId: "xxx-xxx-xxx-xxx"
});
</script>
If your embed requires a JavaScript put it in the HTML or custom module like this
This will put the script before the closing body tag AND HubSpot will check if this script is getting loaded already and won’t put it twice/multiple times into your page if you’re using the module several times on the page.