AnsweredAssumed Answered

Lightbox Form not pre-populating

Question asked by JD Nelson Champion on Sep 17, 2014
Latest reply on Sep 17, 2014 by Grant Booth
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:

      

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

Outcomes