Hi Guys, I am using Teamsite, and having a bit of difficulty with this. I have the embedded script code provided by the form, but when I just paste it in, it obviously just loads the form every time the page loads. I would like it so that the customer clicks "Register Now" as an HTML link, and then that opens the Lightbox. Here is the embed code as an example.
Solved! Go to Solution.
Step 1: Embed this on your page
<script src="//app-sj03.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_1206"></form>
<script>function showMessage() {
MktoForms2.loadForm("//app-sj03.marketo.com", "896-JNU-907", 1206, function (form){MktoForms2.lightbox(form).show();});
};</script>
Step 2: Change your "Register Now" link to this format
<a href="#" onclick="showMessage();">Register Now</a>
Let me know if this approach works.
Step 1: Embed this on your page
<script src="//app-sj03.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_1206"></form>
<script>function showMessage() {
MktoForms2.loadForm("//app-sj03.marketo.com", "896-JNU-907", 1206, function (form){MktoForms2.lightbox(form).show();});
};</script>
Step 2: Change your "Register Now" link to this format
<a href="#" onclick="showMessage();">Register Now</a>
Let me know if this approach works.