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:

https://www.jotform.com/220631153630039?name[first]=Jane&name[last]=Doe&email=jane.doe@jotform.com&interests=News,Health,Sports

This also works on embedded forms:

https://jotformer.blogspot.com/2022/10/signup-form.html?name[first]=Jane&name[last]=Doe&email=jane.doe@jotform.com&interests=News,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.
field-prepopulator-generate-url-min.gif

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: https://www.jotform.com/answers/

Contact Jotform Support: https://www.jotform.com/contact/

Send Comment:

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

Comments: