Skip to main content
KCS_Integration
Level 2
Mar 23, 2018 7:11 PM UTC

Can multiple Marketo forms be used on the same page?

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
User Group Leader
User Group Leader
Apr 18, 2018 9:37 PM UTC

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

Translate
My_Nguyen
Level 2
May 18, 2019 2:18 AM UTC

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

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 18, 2019 2:24 AM UTC

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

Translate
My_Nguyen
Level 2
May 18, 2019 2:32 AM UTC

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

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 18, 2019 2:46 AM UTC

They still have different attributes on the form element.

Translate
My_Nguyen
Level 2
May 18, 2019 2:57 AM UTC

Okay, I got it. Thanks for your help!

Translate
My_Nguyen
Level 2
May 18, 2019 3:38 AM UTC

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.

Translate
SanfordWhiteman
User Group Leader
User Group Leader
May 18, 2019 3:41 AM UTC

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

Translate
My_Nguyen
Level 2
May 18, 2019 8:33 AM UTC

It was just a typo in the field name

Translate