5 Replies Latest reply on Jan 21, 2015 6:44 AM by John Wallace

    How to auto fill hidden field with forms 2.0

    John Wallace
      Hi there,  I am interested creating multiple variations of the same landing page but passing in different refferal urls within the form.  We are using forms 2.0 and my thought was to have it auto fill the hidden field that contains the referral field.  This is kinda of what I am thinking but was not sure about the syntax for hidden fields or especially hidden ref fields.  Has anyone done this before?  any suggestions would be apprecited.  Thanks

      <script src="//app-sjp.marketo.com/js/forms2/js/forms2.js"></script>
      <form id="mktoForm_161"></form>
      <script>MktoForms2.loadForm("//app-sjp.marketo.com", "466-AGZ-592", 161, function(form){
      form.vals({ "Ref":"myreferral-code-here"});