CMS Development

Yulianagh
Member

How to add CSS to Form in Angular 2+?

Hi, how to overwrite the css on my form?, I followed the tutorials but not working,  this is my code in Angular:

TS:
ngAfterViewInit(): void {
   hbspt.forms.create({
      portalId: "11111",
      formId: "111111",
      css: ' ',
      target: document.getElementById("hubspotForm")
  });
}


HTML:
 <div id="hubspotForm"></div>

This is my form:

Captura de pantalla 2018-12-04 a la(s) 19.26.02.png

 
 
I want manipulate styles in my component, thanks.
0 Upvotes
1 Reply 1
dennisedson
HubSpot Product Team
HubSpot Product Team

How to add CSS to Form in Angular 2+?

did you select the unstyled form in the form options?

here is a link for reference.  click on the "style...external pages anchor

0 Upvotes