SOLVED

Re: Different form behavior in Chrome and Firefox

Go to solution
Anonymous
Not applicable

Different form behavior in Chrome and Firefox

Hi,

On the landing page : http://pages.videojet.com/PPC-Brand-Brand-AB-TEST-Variation-1.html

>On chrome :  the forms are diplayed on the top of the page and centered.

http://www.videojet.com/content/dam/Countries/France/Marketo-BH/chrome-form.jpg

>On firefox: the forms are displayed anywhere on the page.

http://www.videojet.com/content/dam/Countries/France/Marketo-BH/FF-form.jpg

I would like to have the same behavior on form appearance for all browsers.

Also; do you know a JS to not make the form being displayed on top of the page ? So the user is not redirected to the top of the page.

thanks

1 ACCEPTED SOLUTION

Accepted Solutions
SanfordWhiteman
Level 10 - Community Moderator

Re: Different form behavior in Chrome and Firefox

OK, here you go:

MktoForms2.whenReady(function(form){

  window.dispatchEvent(new UIEvent('resize'));

});

This will compensate for a bug in the Marketo modal rendering where it miscalculates the height as < 0.

View solution in original post

5 REPLIES 5
Anonymous
Not applicable

Re: Different form behavior in Chrome and Firefox

I checked this out and cannot see the problem, did you fix it?

SanfordWhiteman
Level 10 - Community Moderator

Re: Different form behavior in Chrome and Firefox

I see it as in Benoit's screenshot.  What version of FF are you using?

SanfordWhiteman
Level 10 - Community Moderator

Re: Different form behavior in Chrome and Firefox

Benoit, I see the exact bug in forms2.js that's causing this, but I haven't found a workaround yet (aside from replacing the whole script with an updated version, which is obviously not recommended).

SanfordWhiteman
Level 10 - Community Moderator

Re: Different form behavior in Chrome and Firefox

OK, here you go:

MktoForms2.whenReady(function(form){

  window.dispatchEvent(new UIEvent('resize'));

});

This will compensate for a bug in the Marketo modal rendering where it miscalculates the height as < 0.

Anonymous
Not applicable

Re: Different form behavior in Chrome and Firefox

Great ! thank you Sanford Whiteman

as always, perfect !