Pre-populate form with data from the same form

  • Profile Image
    Beckib
    Asked on August 25, 2019 at 09:28 AM
    Hi All,
     
    I have a form that has information such as name, address, email etc as well as pet information. In some cases, there may be 3-4 pets so I need to be able to account for that.
     
    I want to the user to be able to fill in the form and then answer "Yes" to add another pet. I have a condition that redirects the user when they submit if they choose "Yes" to add another.
     
    The form redirects them back to the same form but uses URL parameters to populate the common fields name, address email etc. I have this working for a few of the fields but some fields don't work and some behave strangely. I don't really understand how it is working.
     
    I will give an example:
     
     
    The above works and passes through the information from the first submission. I understand that the ownersAddress name comes from the unique name field on the form but not sure where thaddr_line1 is obtained from. I can't see this anywhere. Understanding this may help with the other fields. 
     
    So my question is; where do the addr_line1addr_line2 names come from and where can I find out what they are?
     
    Hope this make sense 
     
    Jason
  • Profile Image
    Mike
    Answered on August 25, 2019 at 01:24 PM

    For the prepopulation we use a field name part after the q_, this name can be checked using browser developer tools.

    Alternatively, you may generate a prepopulation URL with https://prepopulate.jotform.io to get a proper name.

    If you have any follow up questions, please let us know.