I’m trying to use Breeze form shortening on a demo form embedded on our site, and I’ve hit what looks like a conflict between shortening and custom styling.
Here’s what I’m seeing:
Form shortening only works on the new-style embed (js-na2.hsforms.net/forms/embed/<portalId>.js with the hs-form-frame div). It runs fine there, enrichable fields hide for known business emails like they should. The problem is that embed renders the form inside a cross-origin iframe (js-na2.hsforms.net/...frame.html), so none of our custom CSS reaches the form fields. I can only style the outer container.
The classic hbspt.forms.create() v2 embed renders inline with no iframe and takes custom CSS fine, but from what I can tell form shortening doesn’t run on that older embed.
So it feels like an either/or: shortening with the iframe and no custom CSS, or full custom styling with the inline embed and no shortening.
A few questions:
- Is there any embed method where shortening runs and the form is inline (not iframed) so I can style it with my own CSS?
- Does the “export raw HTML form” option still run shortening once it’s embedded, or does exporting break the enrichment behavior?
- If neither works, what’s the recommended way to get an embedded shortening-enabled form to match a custom design? Is styling basically limited to whatever the in-app form editor exposes?
We need to keep a specific visual design on this form, so figuring out what’s actually possible would help a lot. Thanks.