1 Reply Latest reply on Sep 5, 2017 9:59 AM by Chris Johnston

    Prefill Javascript code

    Kristopher Maier

      We are currently using javascript to load forms on our site. Is there a javascript code snippet out there to enable the form fields we designate to fill in if the user has been cookied?

       

      SAMPLE OF CODE we use to reveal forms on our site.

      <script src="//app-***.marketo.com/js/forms2/js/forms2.min.js" type="text/javascript"></script><script type="text/javascript">

      MktoForms2.loadForm("//app-***.marketo.com", "***-***-***", ****, function (form) {

      MktoForms2.$("#formPlaceholder_1007").append(form.getFormElem());

      });

      </script>

       

      <div id="formPlaceholder_****"> </div>

       

       

      Thanks!