I have some code that should display a widget form. When I try to embed it or create a module to test this form displaying, it doesn’t show anything when previewing the Hubspot CMS page I’ve added the code to. I’m wondering if I have to do something else e.g. like this info here about require.js > How to Use Web Components in HubSpot CMS Templates and Modules
Hey @Chappers if you’re just trying to add some custom code onto your site you could just use the “source code” button within a rich text module.
Alternatively if you plan on reusing it, it might be beneficial to just create a custom module within the design manager and copy your code in here: Create and edit modules in the design manager
I just tested this out however and it looks like there’s actually an issue with the code itself that’s causing it not to appear on the page:
Thanks @TomM2 - This coming week we’re speaking with the company that supplied that code (the firm is non-Hubspot). Hopefully I can orientate them in the HS CMS. I’ve got some pointers to give them and the knowledge base info you flagged. Let’s see how we get on …