Embedded Marketo forms appearing twice | Community
Skip to main content
April 9, 2015
Question

Embedded Marketo forms appearing twice

  • April 9, 2015
  • 6 replies
  • 6430 views
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?
This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

6 replies

Josh_Hill13
Level 10
April 9, 2015
do you have conflicting code on that page?
what browser?
April 9, 2015
It's definitly a Wordpress issue, it's in all browsers. There must be a conflict somewhere.
April 9, 2015
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
April 10, 2015
@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.
April 10, 2015
@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

 
April 10, 2015
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.
August 25, 2016

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.

August 26, 2016

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....( ̄◇ ̄;)