How to add CSS to Form in Angular 2+?

New Contributor

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.
Reply
0 Upvotes
1 Reply
Advisor | Platinum Partner

did you select the unstyled form in the form options?

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

dennis
Reply
0 Upvotes