Can multiple Marketo forms be used on the same page? | Community
Skip to main content
KCS_Integration
Level 2
March 23, 2018

Can multiple Marketo forms be used on the same page?

  • March 23, 2018
  • 9 replies
  • 7662 views

Issue Description
Can multiple Marketo forms be used on the same page?

Issue Resolution
Due to the way Marketo forms are embedded on pages, you cannot have two Marketo forms on a single page (landing page or external). Having multiple forms on a single page can prevent the forms from submitting properly.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

9 replies

SanfordWhiteman
Level 10
April 18, 2018

This actually can be done safely, see: Multiple Marketo forms, multiple times… on the same page

My_Nguyen
Level 2
May 18, 2019

How do you add a custom "onSuccess" for each form? Like a thank you message in the right place and a tracking event?

SanfordWhiteman
Level 10
May 18, 2019

Check the form ID (form.getId()) and/or form attributes (form.getFormElem()[0].getAttribute("whatever-attribute")) and act accordingly.

My_Nguyen
Level 2
May 18, 2019

How about when they have the same form ID using the script you wrote in the blog link above?

SanfordWhiteman
Level 10
May 18, 2019

They still have different attributes on the form element.

My_Nguyen
Level 2
May 18, 2019

Okay, I got it. Thanks for your help!

My_Nguyen
Level 2
May 18, 2019

Now I'm hitting a snag on adding a hidden field when the forms load... It looks like the field got injected okay in the html, but the data wasn't submitted.

SanfordWhiteman
Level 10
May 18, 2019

Without seeing your page I couldn't help you with that.

My_Nguyen
Level 2
May 18, 2019

It was just a typo in the field name