Javascript File Causing two Forms to appear

Anonymous
Not applicable

Javascript File Causing two Forms to appear

Hello -

We have made this landing page on our website: http://www.bkd.com/industries/health-care/long-term-care/resources.htm

We are using a system called ZoZo tabs which is located in the middle of the page that houses the articles, webinars, services and contact us tabs. (The Gray tabs)

When you go to the Contact us tab for some reason the Javascript that is wtih the ZoZo tabs and the javascript with the Marketo form is causing it to pull the forms twice. Has anyone else had this happen before?

Any help would be greatly appreciated! I have tried everything I can think of. Still waiting to hear back from the ZoZo Tabs support person as well. 
Tags (1)
8 REPLIES 8
Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Hey!

You said 2 forms are appearing? I only see one!? 

 

0EM50000000SUVE.jpg

Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

I can confirm that I am seeing two forms load on the page. I am trying to figure out why now. 
Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Hey Stephen - 

Wrong contact us area. If you go the URL I provided in my first post. It is the group of gray tabs under the slider and copy. They should say Articles, Webinars. Services, Contact Us.. Then that contact us tab has two Marketo forms.

The page you are viewing is our main contact us page which yes only has one contact us form. 

I have gone through Marketo support and they were the ones that helped me figure out that the Javascript is calling two forms. 

Here is what they provided to me. 0EM50000000SUVJ.jpg

Thanks!

Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Have you tried disabling Optimizely, and seeing if two forms still appear?
Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

I am not sure how I would do that. I don't use Optimizely. I am not sure we even have an account. 
Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Problem might be that you're loading your nested form twice, so its calling the function that appends the partial the same number of times?  If you have it in your application Layout file it could cause this problem. If it is, remove the entry from your application layout.
Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Thanks Stephen. My problem is I am having a hard time figuring out where it is calling it twice. I have narrowed it down to do something with the form script and the scripts being used for the ZoZo tab system. 


Marketo Form: 
<script src="//app-sj02.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_246"></form>
<script>MktoForms2.loadForm("//app-sj02.marketo.com", "596-LPQ-505", 246);</script>

ZoZo Tabs:
<script src="/js/jquery.min.js"></script>
<script src="/js/zozo.tabs.min.js"></script>
<link href="/css/zozo.tabs.min.css" rel="stylesheet">
<link href="/css/zozo.tabs.flat.min.css" rel="stylesheet">

Anonymous
Not applicable

Re: Javascript File Causing two Forms to appear

Hi every body,

Is this issue fixed , I still see it in some of my forms also and the code looks clean / standart copy paste of form emmbed code.

Have a nice day