Embed lightbox form on non marketo page that displays on CTA button click | Community
Skip to main content
Ele_de_Vere
Level 2
June 1, 2017
Question

Embed lightbox form on non marketo page that displays on CTA button click

  • June 1, 2017
  • 1 reply
  • 3926 views

Hi Marketo community,

I need some help with embedding a Marketo form onto a WordPress landing page.

I would like the lightbox form to appear when someone clicks a CTA button. So far I am having no luck with various HTML codes ( can get a button to populate and display on the page, but no form is behind the button). Any guidance or advice would be much appreciated.

Thank you!

Ele

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

1 reply

SanfordWhiteman
Level 10
June 1, 2017
June 21, 2017

Hi Sanford. I'm trying to do something similar, where a privacy box pops up upon clicking submit on another form. We only want to allow the submit action if they click agree on the pop up.

This is what I've put on my test landing page:

<form id="mktoForm_2319" class="mktoForm"></form>

<button id="Sumit"

        class="open-lightbox"

        data-mktoform-id="2319">Submit</button>

<button id="openMktoLightboxFooter"

        class="open-lightbox"

        data-mktoform-id="2319"

Unfortunately, the lightbox is popping up upon entry to the page: info.sdl.com/formtest.html 

Any clue what I've done wrong? And how to prevent the submit action unless Agree is clicked? Thanks for any advice.

SanfordWhiteman
Level 10
June 21, 2017

Can you open a new thread for this? You can link back to this one but I don't want to clutter the topic (and unfortunately @Ele de Vere didn't come back).