Skip to main content
Mike_Rojas
Level 2
Oct 8, 2019 4:07 PM UTC
Solved

MktoForms2 is not defined in Marketo Forms 2 Cross Domain request proxy frame script.

Embedded forms not submitting in FireFox Private mode.  We are using a CNAME to load the form but it looks like there is an additional script on the Marketo side that is loaded with a Marketo CNAMe and not our custom CNAME.  Is this something we can control?

The script is loaded with our CNAME though it's loading the forms.js from the Marketo domain.  Can this be updated to use our CNAMe as well?  

Is there another way around this issue?

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Oct 8, 2019 6:41 PM UTC

Ugh, I though this had been fixed permanently before. Guess we have to use my workaround still.

Upload this file to your Design Studio assets:

   Marketo Forms 2 Cross Domain request proxy frame 

Refer to that file in your options before loading the form:

<script src="//p.highspot.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_2998"></form>
<script>
MktoForms2.setOptions({
formXDPath:"/rs/623-OHN-043/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//p.highspot.com", "623-OHN-043", 2998);
</script>‍‍‍‍‍‍‍‍

Demo:

   MktoForms2 :: XDFrame relative path for Tracking Protection

16 replies

SanfordWhiteman
Level 10
Oct 24, 2019 4:58 AM UTC

Please point to the the page you're using to test. text/html isn't a mismatch for the HTML content.

Translate
Level 2
Oct 24, 2019 6:08 AM UTC
SanfordWhiteman
Level 10
Oct 24, 2019 6:10 AM UTC

I mean the page with the form.

Translate
Mike_Rojas
Level 2
Oct 8, 2019 6:06 PM UTC
SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
Oct 8, 2019 6:41 PM UTC

Ugh, I though this had been fixed permanently before. Guess we have to use my workaround still.

Upload this file to your Design Studio assets:

   Marketo Forms 2 Cross Domain request proxy frame 

Refer to that file in your options before loading the form:

<script src="//p.highspot.com/js/forms2/js/forms2.min.js"></script>
<form id="mktoForm_2998"></form>
<script>
MktoForms2.setOptions({
formXDPath:"/rs/623-OHN-043/images/marketo-xdframe-relative.html"
});
MktoForms2.loadForm("//p.highspot.com", "623-OHN-043", 2998);
</script>‍‍‍‍‍‍‍‍

Demo:

   MktoForms2 :: XDFrame relative path for Tracking Protection

Translate
Mike_Rojas
Level 2
Oct 8, 2019 10:52 PM UTC

We have deployed this and forms are working in Private mode now. Thank you! 

Translate
SanfordWhiteman
Level 10
Oct 8, 2019 5:37 PM UTC

Pls provide the URL of this page.

Also, terminology FYI: the CNAME of your LP Domain/Domain Alias is <accountstring>.mktoweb.com. The LP Domain is an *alias*. 

In other words, the CNAME is the right-hand-side of a CNAME DNS record, not the left.

Translate