Lightbox form open on click
Hello! I'm trying to create a form where a privacy box pops up upon clicking submit. We only want to allow the submit action on the initial form 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.