Prepopulating Form Fields via URL Parameters

January 11, 2023

See also: Prefill

You can prepopulate your form fields by including the query strings in the URL. The query component is indicated by the first question mark (“?”) followed by the query parameters in the URL. Multiple query parameters are separated by the ampersand (“&”). The parameters are in key-value pairs where “key” is the field’s unique name and “value” is the field’s prefill value.

For example, here’s a form with fields prepopulated via query parameters:[first]=Jane&name[last]=Doe&,Health,Sports

This also works on embedded forms:[first]=Jane&name[last]=Doe&,Health,Sports

Generating Form URL with Query Parameters

To identify the accepted query strings or parameters on your form

  1. Open Field Prepopulator.
  2. Next, click on Populate Fields at the bottom.
  3. In the Authorize window, click on Allow.
  4. Select your form in the Form Picker window.
  5. Click on Continue in the lower-right corner.
  6. Now, provide the prefill values for your form by entering them in the form fields.
  7. Finally, click on Generate URL at the top and copy the generated URL.

Note: For hidden fields, you can manually add them as parameters in the URL by identifying their unique names. To learn more, see Field IDs and Unique Names.

Share the generated URL with your users or use the URL structure as a template for prepopulating your form via query parameters from other sources.

See also: How to Automatically Pass Form Data to Another Form

Was this guide helpful?
Contact Support:

Our customer support team is available 24/7 and our average response time is between one to two hours.
Our team can be contacted via:

Support Forum:

Contact Jotform Support:

Send Comment:

Jotform Avatar
This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.