Prefill Form with URL parameters

This script will prefill your form fields, visibible or hidden, with parameters from the URL.

NOTE: This solution WILL appear in Google Analytics, so UNDER NO CIRCUMSTANCE should you use personally identifiable information as URL parameters. Failure to do so could cause the termination of your GA services.

The parameters must match the form field name.

(Inspect the HTML code of your page if you don't know the name. The form name is the text found inside the name="" part of the "<input>" code. For example: <input name="discountcode" etc>)