Question
Lightbox Form not pre-populating
I'm not sure why my form that I put in a lightbox is not pre-populating with information after coming from an email link. I used the JS query to pop up the lightbox w/ form on click, maybe that prevents something? My LP is set to enable pre-populating. am I missing sometthing?
Here's the generic script I'm using:
Here's the generic script I'm using:
<a href="#" id="lightbox-link">CONTACT US</a>
<script src="//app-xxx.marketo.com/js/forms2/js/forms2.js"></script>
<form id="mktoForm_618"> </form>
<script>
var btn = document.getElementById("lightbox-link");
btn.onclick = function(){
MktoForms2.loadForm("//app-xxx.marketo.com", "xxx-xxx-xxx",618, function (form){
MktoForms2.lightbox(form).show();
});
};
</script>
