JS disabled on Marketo Form | Community
Skip to main content
Nitin_Sharma1-2
New Participant
May 19, 2021
Solved

JS disabled on Marketo Form

  • May 19, 2021
  • 1 reply
  • 2759 views

Hi all,

 

I was using lots of JS in my Marketo forms but after the UI update, I am seeing that all JS in Marketo forms has been disappeared.

I cannot use JS anymore in Marketo forms.

Does anyone has seen the same issue? Any idea?

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 SanfordWhiteman

The Custom CSS section has never supported JS. It inserts a local <style> element, and the inner text of a <script>, even if it includes what looks like a <script> block, will never be executed. It's just broken CSS.

 

You must've been adding the same JS somewhere else and thought code was running from the CSS box.

1 reply

SanfordWhiteman
New Participant
May 19, 2021

What do you mean by "in" Marketo forms?  Please explain exactly where you've been attempting to embed code, and supply an example page.

Nitin_Sharma1-2
New Participant
May 20, 2021

Hi Sanford,

 

I was using the JS code here and it was working fine earlier. I know this section is for CSS but putting JS code was working fine.

 

Thanks,Nitin Sharma
SanfordWhiteman
SanfordWhitemanAccepted solution
New Participant
May 20, 2021

The Custom CSS section has never supported JS. It inserts a local <style> element, and the inner text of a <script>, even if it includes what looks like a <script> block, will never be executed. It's just broken CSS.

 

You must've been adding the same JS somewhere else and thought code was running from the CSS box.