Hello -
I have a page that I am building (http://www.bkd.com/stay-connected/offices/ar/arkansas-test.htm). I am wanting to add a button and when the button is clicked on the lightbox form shows up. Right now it just appears when the page is refreshed or loaded. My fear is some people will not want to subscribe right away but maybe after they read the page.
Does anyone know how to accomplish this using the new Forms 2.0?
Ultimately it would be ideal to have it pop up when the page is loaded and allow them to have the option to bring it back up using a button.
Thank you for your help.
-Marcy-
Solved! Go to Solution.
Hello,
I've spent a number of hours trying to get this to work. I've put together a test page with only part of what I'm working on using 2 different versions of the code I've seen posted here:
mptrms.mckesson.com/test-page.html
Can anyone tell me why I cannot get the form to show in a lightbox when "Download our White Paper" is clicked?
Thanks,
Paul
For one thing, you have a fatal syntax error you would see in the console:
btn.onclick = function() {
MktoForms2.loadForm("//app-sjg.marketo.com", "766-XNA-725", 1616, function(form) {
MktoForms2.lightbox(form).show();
});
});
Should be:
btn.onclick = function() {
MktoForms2.loadForm("//app-sjg.marketo.com", "766-XNA-725", 1616, function(form) {
MktoForms2.lightbox(form).show();
});
}
Ahhh... Thank you Sanford.
Nice, this is helpfulz!