Help with custom CSS on a form | Community
Skip to main content
New Participant
October 17, 2022
Solved

Help with custom CSS on a form

  • October 17, 2022
  • 3 replies
  • 2259 views

I have updated the custom css file on my form but even in preview mode the changes to the custom css is not shown.

The draft is already approved and if I create a new draft and edit my custom css I can see my changes in there. 

 

Is it something related to cache ? If so, is there a way to clear cache in Marketo form?

 

Thanks in advance,

Bata

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by ucbata

Apparently, the custom CSS had incorrect rules defined which was causing the issue. 

3 replies

ucbataAuthorAccepted solution
New Participant
October 23, 2022

Apparently, the custom CSS had incorrect rules defined which was causing the issue. 

SanfordWhiteman
New Participant
October 24, 2022

i.e. “the effects of the CSS on visual styling are not shown”

Disha_Goyal6
New Participant
October 17, 2022

Hi @ucbata, if you can share the LP where form is used that would be very helpful to replicate the issue.

 

Thanks,

Disha

SanfordWhiteman
New Participant
October 17, 2022

Is it something related to cache ? If so, is there a way to clear cache in Marketo form?

Form descriptors are cached for a few minutes, but doubt this is your problem because you say even preview doesn’t show your changes.

 

Is this on a Marketo LP, and if so have you approved it?  Also, when you say your changes “is not shown” do you mean the effects of the CSS on visual styling are not shown, or that the injected CSS stylesheet doesn’t have the changes?

ucbataAuthor
New Participant
October 17, 2022

Is this on a Marketo LP, and if so have you approved it?  Also, when you say your changes “is not shown” do you mean the effects of the CSS on visual styling are not shown, or that the injected CSS stylesheet doesn’t have the changes?


I am using the embed code of the form in my page (not a Marketo LP) and I don't see the changes I made to the custom css in the form preview. I added a couple of rows to the css and when I use developer tools inspect window in the form preview, I can see the previous css styles are there but new changes are not. 

SanfordWhiteman
New Participant
October 17, 2022

OK, you’ll have to give exact examples of what you’re observing and what you expect and link to your LP.