Prepopulating Form Fields via URL Parameters

June 13, 2024

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.

Youtube Embed Poster: pYIf5c1s9FQ

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. Go to Field Prepopulator.
  2. Select Populate Fields at the bottom and authorize the app.
  3. In the Form Picker dialog, choose your form, then select Continue.
  4. On the next page, provide the prefill values for your form fields.
  5. Select Generate URL at the top and copy the provided URL.

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. For hidden fields, you can manually add them as parameters in the URL by identifying their unique names. See Field IDs and Unique Names to learn more.


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:

  • Aaron Fasel - Profile picture
  • Daiyen  Pastor - Profile picture
  • Johannes - Profile picture
  • Jeffrey Henry - Profile picture
  • JHC Evangelism - Profile picture
  • ETRO IT - Profile picture
  • 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