SOLVED

Re: How to get forms2.min.js to work in IE?

Go to solution
Robb_Barrett
Marketo Employee

How to get forms2.min.js to work in IE?

Hello, I have a page with an embedded form that's giving me problems in IE only. 

forms2problem.png

According to what I've read, IE doesn't support forEach.  So what's the work-around for this? 

Works fine in FF and Chrome, but of course IE is the browser we'll most likely have to accomodate.

Robb Barrett
1 ACCEPTED SOLUTION

Accepted Solutions
Robb_Barrett
Marketo Employee

Re: How to get forms2.min.js to work in IE?

Your hint of Edge helped me solve it.

The following code needs to be placed in the head tag and it works like a charm.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Robb Barrett

View solution in original post

9 REPLIES 9
Kenny_Elkington
Marketo Employee

Re: How to get forms2.min.js to work in IE?

Which version/compatibility mode are you seeing this on?  Do you have an example page where we could see this in action?

Robb_Barrett
Marketo Employee

Re: How to get forms2.min.js to work in IE?

http://it.gehealthcare.com/IP_CPS_Nurture_2_2015_All-In-One-Page.html?asset=autodemo

IE11. I've tried this on v8 compatibility and it looked hideous.

The problem manifests when you submit the form. 

Robb Barrett
Kenny_Elkington
Marketo Employee

Re: How to get forms2.min.js to work in IE?

I can't seem to replicate this, though I'm trying to emulate from Edge and not IE11.  I'll try again when I have access.

Robb_Barrett
Marketo Employee

Re: How to get forms2.min.js to work in IE?

So it works for you in IE11?

When I submit I get stuck at the code I showed above.  The URL shows the page along with a query string of all the form fields. 

You don't get that?

Robb Barrett
SanfordWhiteman
Level 10 - Community Moderator

Re: How to get forms2.min.js to work in IE?

Array#forEach was introduced in IE9.  So you must have had something that was forcing you into IE8 mode. I doubt that had to do with the form.

Jamie-Carey
Level 6

Re: How to get forms2.min.js to work in IE?

I don't know the answer to your question, but A++ on the tags.

Robb_Barrett
Marketo Employee

Re: How to get forms2.min.js to work in IE?

Your hint of Edge helped me solve it.

The following code needs to be placed in the head tag and it works like a charm.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

Robb Barrett
Anonymous
Not applicable

Re: How to get forms2.min.js to work in IE?

Hi,

We recently changed our marketo pages to ssl so that we could embed them on our secure site. Now it turns out the form do not show up at all on IE. I tried placing this code in the head tag of the template the the landing pages call on. But the forms still do not show up.

<meta http-equiv="X-UA-Compatible" content="IE=edge" />

The forms also do not show up on the iphone 5.

any thoughts.

SanfordWhiteman
Level 10 - Community Moderator

Re: How to get forms2.min.js to work in IE?

Please post the URL of an example page.

I suspect you hard-coded plain-text (http://...) somewhere instead of using protocol-relative URLs (//...)