Re: Embedded Marketo forms appearing twice

Anonymous
Not applicable

Embedded Marketo forms appearing twice

I've embedded a form on a page of the company website, one one page the form is appearing twice even though the code is only on the page once.

Has anyone come across this?
Tags (1)
15 REPLIES 15
Josh_Hill13
Level 10 - Champion Alumni

Re: Embedded Marketo forms appearing twice

do you have conflicting code on that page?
what browser?
Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

It's definitly a Wordpress issue, it's in all browsers. There must be a conflict somewhere.
Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

Craig,
2 things. First delete the code > Update > Check the page that the form is gone.

Next, Paste the code back (Fresh code from the embed link) > Update > Refresh. Is there 2 or 1 form? Wordpress has a habit of dupping JS. I have seen it happen.

If 2 still exist try swapping between Normal and Lightbox so begin trouble shooting which part of the jQuery may have something to do with it.

Let us know how this works out,

 
SanfordWhiteman
Level 10 - Community Moderator

Re: Embedded Marketo forms appearing twice

@Craig N if a page has two form containers with the form ID, i.e. <form id="mktoForm_96"></form> then the form will be rendered into both containers.  

(This is true despite the fact that duplicate elements with the same ID are explicitly broken in HTML -- browsers are lenient and may return an array of dupes, depending on how you use the Selectors API.)

So you may want to check the HTML as more than, or as much as, the JS embed code.
Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

@craig Can you send us a link to the page? I would be interested in inspecting your page code and maybe I can help identify the issue that way

 
Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

Hi Craig
I had met similar issue last year.
My page had one embed <Form>, but two same forms were rendared.
I checked all tag pairs.  eg. <div> </div>
it was fixed.
Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

Can you explain what you mean by "checked all tag pairs"? I'm having the same two-forms problem in a Joomla site and can't figure it out.

Anonymous
Not applicable

Re: Embedded Marketo forms appearing twice

Hi Tim Leverett

"checked all tag pairs"

Check HTML validation error and fix it.

P.S

I tried to cause this issue again for you, but it's difficult today....( ̄◇ ̄;)

SanfordWhiteman
Level 10 - Community Moderator

Re: Embedded Marketo forms appearing twice

Pls post a link to the site.  That's how we get things done.