Forms 2.0 and Not Rendering with Embed

Highlighted
Anonymous
Not applicable

Forms 2.0 and Not Rendering with Embed

Has anyone else experienced the forms 2.0 embed on a non Marketo page not rendering due to security issues via proxies? We have found that it gets blocked on our internal network, which we can unblock, but I would think most corporate companies in the world use some kind of proxy that could block the forms. This is a major problem to using that functionality (which I love). I don't know if there is a solution. 
Tags (1)
12 REPLIES 12
Highlighted

Re: Forms 2.0 and Not Rendering with Embed

We're having the same issue. Has anyone responded to your message?
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

Yes. I ended up logging a ticket with support and it has been escalated to engineering and they are working on it. Basically, my company's network proxy is stripping out the Marketo script. So, any large organization that uses the same proxy we do or maybe others the form embed code won't display. 
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

We had the problem that the form wasn't displaying in either the preview web page or the live version. Not sure if it's the same issue you're having. We solved it by entering https:// before the form references. As per the example below. 

<script src="https://app-lon03.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_1012"></form>
<script>// <![CDATA[
MktoForms2.loadForm("https://app-lon03.marketo.com", "660-GVK-255", 1012);
// ]]></script>
Highlighted

Re: Forms 2.0 and Not Rendering with Embed

Has anyone found an answer to this issue?  I tried Gary S code in this small HTML and his works, but my forms from both sandbox and production environments will not render render.
The first 2 are my forms, the last is Gary's.   Is there maybe a setting within Marketo that allows the forms to be visible outside of a Marketo Landing Page?

<!DOCTYPE html>
<html>
<body>
<h1>My Web Page</h1>
<script src="https://app-sj07.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_1003"></form>
<script>// <![CDATA[
MktoForms2.loadForm("https://app-sj07.marketo.com", "195-WCT-232", 1003);
// ]]</script>

<script src="https://app-ab02.marketo.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_2"></form>
<script>// <![CDATA[
MktoForms2.loadForm("https://app-ab02.marketo.com", "591-WJW-115", 2);
// ]]></script>

<script src="https://app-lon03.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_1012"></form>
<script>// <![CDATA[
MktoForms2.loadForm("https://app-lon03.marketo.com", "660-GVK-255", 1012);
// ]]></script>
</body>
</html>
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

I was experiencing a similar issue with forms.min.js throwing a regex error and added the https:// to my forms to resolve it.
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

Yes, I have https://  in both the src and the load form.   Actually, I contacted Marketo support and the problem was that I needed this in the header of my page:
<head>
<meta charset="UTF-8">
</head>

 
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

I'm also having this problem and have tried both adding the header and https. Neither are working for me.
Like the users above I can get Gary's to work so not sure what's going on.


I had to do a hard refresh (Ctrl + F5) to get my changes active and sure enough the combo of the Header tag and explicitly calling the src files over https did the trick.
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

If it helps anyone, here's the blog post with the form embedded at the bottom. Feel free to view the source!
http://garysmithpartnership.com/sales-pipeline-charts-salesforce-dashboard/

Gary
Highlighted
Anonymous
Not applicable

Re: Forms 2.0 and Not Rendering with Embed

I am now seeing the CDATA problem too and none of the replies have fixed the problem.  Is there any other suggestions?