How To: Using JavaScript / JQuery to update a Hidden Formfield.
The thought of JavaScript & coding in HTML on Lading pages & web pages can often be daunting. But it needn't be,
Here is a short guide on how to use JQuery (a simple JavaScript library) to grab a value from your URL & drop that into a hidden form field ready for form submission.
Example: - your user clicks through to your form at http://www.google.com?LeadSource=DOIEmail
Note the bit after the .com ?LeadSource=DOIEmail - this is what we call a query string parameter. - it's extra text that wont affect the visit to http://www.google.com
Tagged:
0