How to prefill a form using URL parameters?

  • Secord_Dan
    Asked on May 7, 2024 at 12:18 PM

    How do you, or can you, used a pre-filled URL?

  • Gian JotForm Support
    Replied on May 7, 2024 at 12:46 PM

    Hi Dan,

    Thanks for reaching out to Jotform Support. Are you trying to refill your form fields via URL parameters? If yes, that is possible, you just have to identify the unique names of the form fields to use in the URL. Let me show you how to get a field's unique name:

    1. Click the Gear icon next to the field that you are trying to prepopulate.
    2. On the menu on the right go to Advanced.How to prefill a form using URL parameters? Image 1 Screenshot 30
    3. Scroll down and expand the Field Details section.
    4. Copy the value under Unique Name.How to prefill a form using URL parameters? Image 2 Screenshot 41

    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.

    Now, to prepopulate the Email and Phone field in this demo, here's the URL to produce based on the Unique Name:

    https://form.jotform.com/241274549023050?email=john@example.com&phoneNumber=1234567890

    We also have a guide about Prepopulating Form Fields via URL Parameters.

    Let us know if there's anything else we can help.

 
Your Answer