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

Ele_de_Vere
Level 2

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

5 REPLIES 5
SanfordWhiteman
Level 10 - Community Moderator
Anonymous
Not applicable

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: http://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 - Community Moderator

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).

Yoav_Guttman1
Level 4

was there a new issue created? i would like to follow it...

SanfordWhiteman
Level 10 - Community Moderator

Nope, no new thread AFAICS.