Additional CSS for form

Suddenly, the page has an extra source of css for the forms. How can it be removed?

Sergey_N_0-1665676846184.png

Hi @Sergey_N,

is this form embedded on a HubSpot page or an external page via embed code?

Regardless - If you’re using the embed code you can modify it by adding

css:""

to it so it looks like this

<script charset="utf-8" type="text/javascript" src="//js.hsforms.net/forms/v2.js"></script>
<script>
 hbspt.forms.create({
 region: "na1",
 portalId: "xxxxxxx",
 formId: "xxxxxxxxxx",
 version: "V2_PRERELEASE",
 css: ""
 });
</script>

this will prevent the loading of any additional CSS.

If you don’t use the embed code check the style-tab in the form. There’s also a toggle in the top left corner to disable any CSS styling.

Attention: If you disable it and don’t have a global CSS styling in your CSS file, the form will be rendered without styling as long as you don’t turn the function back on.

best,

Anton