Hi all, I'm trying to add a HubSpot form to a Image Content or RTE Block. I've added the HubSpot form code to the source code in the block but when I preview the form does not show, the RTE space is just left blank. Any idea why that is? Or how I can work around this?
Are you using it in iframe or you are using Hubspot addon (https://webhelp.episerver.com/16-7/addons/marketing-automation/hubspot.htm)?
By default, script tags are not allowed in RTE properties. Therefore the form code is removed upon saving.
You can either customize it to allow script tags or you can use the HubSpot add-on to render a form.
You can allow script tag the TinyMCE using below code inside initialization module -