Prepopulating Form Fields via URL Parameters

April 5, 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, then select Populate Fields at the bottom.
  2. In the Authorize dialog, select Allow.
  3. In the Form Picker dialog, choose your form, then select Continue in the lower-right corner.
  4. On the next page, provide the prefill values for your form by entering them in the form fields.
  5. Finally, select 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.

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:

  • Maya 1 Tours - Profile picture
  • MITHLESH PC SPPL - Profile picture
  • Mahmood Aljumaily - Profile picture
  • Samantha Stone - Profile picture
  • Positive Reset EatonTown - Profile picture
  • Freek Bos - Profile picture
  • Fernando Ramos - Profile picture
  • vServices - Profile picture
  • Jaime - Profile picture
  • Brandon Gallant - Profile picture
  • Frank Obregon - Profile picture
  • Kinga S - Profile picture
  • CARST - Profile picture
  • Lopay Marketing - Profile picture
  • James - Profile picture
  • aaron - Profile picture
  • Matthew Ray - Profile picture
  • Silent Radio - Profile picture
  • Bod - Profile picture
  • Adrian Alvarez - Profile picture
  • Adrian Alvarez - Profile picture
  • architectdirect - Profile picture
  • Carine M. - Profile picture
  • Féliciano Dorcal - Profile picture
  • Sophie Eden - Profile picture