Skip to main content
Level 8
November 14, 2017
Solved

Two 'pop-up' forms on one Marketo LP?

  • November 14, 2017
  • 2 replies
  • 6711 views

Hi all,

I've been searching and haven't quite got the answer I'm looking for, but I'm looking to get 2 forms on one Marketo Landing page, but these forms need to 'pop-up' when a button is clicked.

Can anyone help?

Thanks

Julz

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

2 different forms using MktoForms2.lightbox() work as well as 2 forms without the lightbox -- that is, they mostly works and get the job done, with some minor quirks (which I've not yet published officially on the blog but have mentioned in some posts here).

Example from a couple years ago: https://codepen.io/figureone/pen/QjjwMB?editors=1010

2 replies

SanfordWhiteman
SanfordWhitemanAccepted solution
Level 10
November 14, 2017

2 different forms using MktoForms2.lightbox() work as well as 2 forms without the lightbox -- that is, they mostly works and get the job done, with some minor quirks (which I've not yet published officially on the blog but have mentioned in some posts here).

Example from a couple years ago: https://codepen.io/figureone/pen/QjjwMB?editors=1010

Level 8
November 14, 2017

Hi Sandy,

Thanks for this.  I looked at your other post about 2 forms on 1 page but that was an external page.  I'll give this code a go and see how it works.

Thank you

SanfordWhiteman
Level 10
November 14, 2017

... but that was an external page.

Lightboxing named mktoForm elements on a Marketo-hosted LP is indeed harder than on an external page.

This is because a named form wants to pop up immediately, as opposed to being triggered by a button click. However, if you hide (visibility: hidden; position; absolute, not display:none) the form until the modal is visible w/the form inside, you can get the same control. (When using a lightbox, hiding and showing is advisable in all cases.)

Or you can use the embed code on the Marketo LP instead of the named form. The principal drawback there is then you have to re-add Pre-Fill.

Level 8
November 14, 2017

Ok, thank you :-)

I'm now just trying to figure out where everything goes on the Landing Page thats created (its a guided landing page).

Thanks again

Juli