# Add Custom HTML Module for HubSpot Forms

**URL:** <https://community.hubspot.com/t/add-custom-html-module-for-hubspot-forms/133351>\
**Category:** HubSpot Ideas\
**Tags:** forms\
**Created:** [May 26, 2025, 11:09am UTC](https://community.hubspot.com/t/add-custom-html-module-for-hubspot-forms/133351 "2025-05-26T11:09:35Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![svirchenko](https://avatars.discourse-cdn.com/v4/letter/s/34f0e0/32.png) [@svirchenko](https://community.hubspot.com/u/svirchenko)\
**Post date:** [May 26, 2025, 11:09am UTC](https://community.hubspot.com/t/add-custom-html-module-for-hubspot-forms/133351/1 "2025-05-26T11:09:35Z")

</div>

I’d like to suggest a feature enhancement for the form builder — the ability to **insert a custom HTML block** directly into a form layout.

This would be especially useful for developers who need to:

- Add inline scripts near the form (for tracking, enrichment, or validation logic)
- Inject custom markup or UI components (e.g., tooltips, notes, embedded media)
- Integrate with third-party systems more seamlessly

Currently, forms are embedded via iframes (with new forms it’s added with src attribute, which makes it challenging to interact with them using custom JavaScript due to Same-Origin Policy restrictions). Having a dedicated module within the form editor where we could paste custom HTML (with or without \<script\> support) would solve many of these limitations.

Even if script execution is restricted, just having a way to insert markup directly into the form DOM would greatly enhance flexibility.

 ![Screenshot 2025-05-23 at 17.35.04.png](https://d2qpr2jzcazej7.cloudfront.net/original/2X/6/664003ec8f39f1c0e6f49c931ef59cc55d9658ca.png)

---

<div class="post-metadata">

**Author:** ![kvds](https://avatars.discourse-cdn.com/v4/letter/k/f1d935/32.png) [@kvds](https://community.hubspot.com/u/kvds)\
**Post date:** [December 8, 2025, 10:39pm UTC](https://community.hubspot.com/t/add-custom-html-module-for-hubspot-forms/133351/2 "2025-12-08T22:39:37Z")

</div>

A “Raw HTML” content block would be great in both form builder, and also in website module builder.
