FYI - here is the code that I was using on the old landing page (non-guided) using a Forms 1.0 form. This reminds me there is a second part to this, where we saw an issue in the past with any spaces in the querystring coming into the form with the URL encoded format of %20. <script language="Javascript" src="/js/public/jquery-latest.min.js" type="text/javascript"></script> <script src="/js/public/jQueryString-2.0.2-Min.js" type="text/javascript" ></script> <script> // to set cookies. Uses noConflict just in case var $jQ = jQuery.noConflict(); var pEmail = decodeURIComponent($jQ.getQueryString({ ID: "Email" })); var pFirstName = decodeURIComponent($jQ.getQueryString({ ID: "FirstName" })); var pLastName = decodeURIComponent($jQ.getQueryString({ ID: "LastName" })); var pCompany = $jQ.getQueryString({ ID: "Company" }); var pCountry = $jQ.getQueryString({ ID: "Country" }); var pCompiled_Lead_Feedback__c = $jQ.getQueryString({ ID: "Compiled_Lead_Feedback__c" }); var p_mkt_trk = $jQ.getQueryString({ ID: "_mkt_trk" }); pFirstName=pFirstName.replace(/%20/g," "); pLastName=pLastName.replace(/%20/g," "); pCompany=pCompany.replace(/%20/g," "); pCountry=pCountry.replace(/%20/g," "); pCompiled_Lead_Feedback__c=pCompiled_Lead_Feedback__c.replace(/%20/g," "); document.getElementById("Email").setAttribute("value", pEmail); document.getElementById("FirstName").setAttribute("value", pFirstName); document.getElementById("LastName").setAttribute("value", pLastName); document.getElementById("Company").setAttribute("value", pCompany); document.getElementById("Country").setAttribute("value", pCountry); document.getElementById("Compiled_Lead_Feedback__c").setAttribute("value", pCompiled_Lead_Feedback__c); document.getElementById("Compiled_Lead_Feedback__c").value = pCompiled_Lead_Feedback__c; document.getElementById("_mkt_trk").setAttribute("value", p_mkt_trk); $jQ(document).ready(function() { poller = setInterval(function(){ if($jQ('#Email').val().length >= 1) { $jQ('#Email').prop('readonly', true); clearInterval(poller); $jQ('#FirstName').prop('readonly', true); clearInterval(poller); $jQ('#LastName').prop('readonly', true); clearInterval(poller); $jQ('#Company').prop('readonly', true); clearInterval(poller); $jQ('#Country').prop('readonly', true); clearInterval(poller); $jQ('#Compiled_Lead_Feedback__c').prop('readonly', true); clearInterval(poller); } }, 500); }); </script>
... View more