Can a form be repopulated with previous details?

  • Profile Image
    Vivi Hoang 
    Asked on October 09, 2015 at 02:33 PM

    Hello, my organization accepts purchase requests from the public. We're interested in a form that allows the customer to fill in their personal information and then information about the item they want us to purchase.

    After they submit the request, we'd like to give them the option to fill out the form again for a new item -- but with the personal information fields automatically populated with their previous details so they don't have to fill those in again. Would this be possible with a paid account of Jotform?

    Page URL:

  • Profile Image
    Answered on October 09, 2015 at 05:04 PM

    Yes. It is possible to generate a link with submitted information that helps the user to populate the fields automatically. This link can be placed on the Thank you page so that clicking on the link will open a new form with the fields prepopulated.

    Please refer to the answer by our colleague Mike in the thread below that helps you in generating dynamic link with pre-populated fields

    Also, please refer to the guide below that can help you in prepopulating fields using URL parameters

    Hope this information helps. Let us know if you need any further assistance. We will be happy to help.

  • Profile Image
    Answered on October 13, 2015 at 03:51 PM

    Kiran, thanks for your help. Based on the guides, I tried fashioning a dynamic link with pre-populated First and Last Name fields as a test. I put the link on the Thank You page. However, when I click on the link, while it takes me back to the form, the First and Last Name fields are blank.

    Here's the test link:[first]={fullName:first}&fullName[last]={fullName2:last}

    Is the syntax correct?

  • Profile Image
    Answered on October 13, 2015 at 06:17 PM

    If you want to populate a form dynamically from another form, you must be careful with the variable fields.

    In your particular form, the syntax is wrong.  I set equal to the variables of my first form which is a test form which carries the values from the variable {fullName1} in your form, to variable {fullName3} in my form.

    So, I made your form as part of my thank you page, here is the sintax:

    And here is my demo form:
    To make it to work dynamically, you must enable the HTTP POST ( Send Post Data)
    I hope this helps, do get back to us should you need further help.
  • Profile Image
    Answered on October 15, 2015 at 09:47 AM

    Hi Jeanette, thank you for the corrected syntax.

    I did enable Send Post Data to Yes. In my thank-you note, I have the text "Submit another Recommend a Purchase item" linked to:[first]={fullName3:first}&fullName1[last]={fullName3:last}&libraryCard3={libraryCard3}&branchWhered={branchWhered}&email={email}. However, this URL does not re-populate the First and Last Names. (The other three fields do successfully re-populate.)

    Am I missing a step?

  • Profile Image
    Answered on October 15, 2015 at 11:22 AM

    Please note that each form can have different values so while {fullName1} is correct in one form {fullName3} or {name} could be the correct value for the other form.

    Now I would first like to check with you if you are looking to redirect people from the form that they are filling out to the same form - just with some of the details already filled out, or are you looking to redirect them to a different form instead?

    The reason why I ask this is to avoid any confusion, since if you are using the same form, then the fields have the same tags / names, but if you are using other forms, then they could have different values.

    I will take it as if you want to have your users:

    1. Access this form:
    2. get redirected to the same form:

    Now you can see a similar setup that I am helping with on another thread here: How can I create multiple records for the same family without retyping the information?

    Now my suggestion is to add an option to ask them if they wish to purchase another item, which will redirect them back to the pre-filled form: Configuring Change Thank You URL after submission condition and if they do not wish, they get a nice Thank You page shown for them :)

    As mentioned, I presume that you will be taking them to the same form, so the correct URL to pass:

    1. Full Name

    2. Library Card Number

    3. Branch where'd you like to pick up your item(s)

    4. E-mail

    would be:[first]={fullName1:first}&fullName1[last]={fullName1:last}&libraryCard3={libraryCard3}&branchWhered={branchWhered}&email={email}

    The way that I got the field names that should be used is by following the steps shown here: How to find Field IDs & Names

    Now, that URL can be used always - so every time they submit the form they are taken to it with these details added. For that you should follow these steps: Redirecting Users to a Different Page

    If however you want to thank them for submitting their order and redirect them if needed, the guide I have mentioned previously is the way to go: Configuring Change Thank You URL after submission condition

    We are however here if you happen to have any additional questions or issues and would be happy to assist with the same :)

  • Profile Image
    Answered on October 15, 2015 at 01:12 PM

    Hi Ben, your response was just what I needed. My form works the way I'd like now. I appreciate your reworking my URL and pointing me to those additional resources!

  • Profile Image
    Answered on October 15, 2015 at 02:20 PM

    You are welcome. Glad to see that the issue is now resolved. Please do not hesitate to get in touch with us if you need any further assistance. We will be happy to help.

    Thank you for using Jotform!!