SOLVED

Remove tha auto-generated forms2.css

Go to solution
Rasmus_Bidstru1
Level 4
I want to do my own style for forms2, not just add upon marketos default styles. But no matter what i do Marketo always adds the file called forms2.css. 
I tried to remove it with a jQuery function:

$( document ).ready(function() {
      $('#mktoForms2BaseStyle').remove(); 
      $('#mktoForms2ThemeStyle').remove();
    });

But it still apears.

0EM50000000SYVv.jpg

Any suggestions? 
Tags (1)
1 ACCEPTED SOLUTION
Kenny_Elkington
Marketo Employee

Hey Rasmus,

I'd suggest using the whenReady callback instead, as it waits until the form is completely done loading likie this:

MktoForms2.whenReady( function(form){
$('#mktoForms2BaseStyle').remove(); 
      $('#mktoForms2ThemeStyle').remove();

});

View solution in original post

28 REPLIES 28