Populating fields to another form not working properly

  • max123jot
    Asked on September 26, 2016 at 1:02 PM

    https://www.jotform.com//?formID=62464023152143

    completing this form as

    surgical case = close urethra fistula

    institution = lurie childrens hospital

       and attending max maizels, md

     

    these fields should populate the following form using the syntax below in conditions

    https://www.jotform.com//?formID=62694590564164

     

    https://form.jotform.com/62694590564164?institution={institution}&surgicalCase={surgicalCase}&attending={attending}&a_email={a_email}

     

    but for some reason attending and email dont populate 

    the url is as below

    https://form.jotform.com/62694590564164?institution=Lurie%20Children%27s%20Hospital%20of%20Chicago&surgicalCase=close%20urethra%20fistula&attending=&a_email=

    please advise

    m

  • Irshad
    Replied on September 26, 2016 at 2:31 PM

    I have checked your form: https://www.jotform.com/62464023152143. I am able to see the field's unique name "a_email" has been used multiple times on different pages of the Form.

    Populating fields to another form not working properly Image 1 Screenshot 30

    And in the same way the field name "attending" has also been used  multiple times on different pages of the Form.

    Populating fields to another form not working properly Image 2 Screenshot 41

    Field name must be unique on form, since on your form the field names "a_email", and "attending" are not unique, because of that the value of those fields are not passing to another form.

    So please try to keep the field name unique, and then check it again.

    To get the Field name details, please check the below guide:

    https://www.jotform.com/help/146-How-to-find-field-IDs-and-names

    If you have any query, or need further assistance, feel free to revert back.

    Thanks.

  • max123jot
    Replied on September 26, 2016 at 2:46 PM
    thanks
    yes i edited the names to be the same
    thinking that the program would take those fields and prepopulate the next
    but....if i am planning for perhaps 50 different fields for name and 50 for
    email
    would you please suggest considerations for such pre population
    in the original question, i pasted the code jotform suggested to use for
    prepopulation
    thanks
    m
    ...
  • Kiran Support Team Lead
    Replied on September 26, 2016 at 5:41 PM

    I have cloned your JotForm to my account and it seems to be working fine. However, I notice that there are some pages being skipped using conditions on the first form in which you may need to check the appropriate fields to be used in the thank you page URL being redirected. As I check the form and submitted the first form, I see that the institution and surgical case fields are pre-populated on the second form properly.

    Populating fields to another form not working properly Image 1 Screenshot 20

    If you see any issue with any specific option on the form, please let us know so that we can take a look and provide you with necessary assistance. 

    Thank you! 

     

  • max123jot
    Replied on September 26, 2016 at 6:46 PM
    hi
    i took your advice and made unique names as below to promote pre-populating
    of the 2nd form
    ?institution={institution}&surgicalCase={surgicalCase}&attending={attending}&a_email={a_email}&attending_vch={attending}&a_email_vch={a_email}&attending_lch={attending}&a_email_lch={a_email}
    btw
    are suffixes for hospitals
    _vch
    _lch
    _cha
    but still does not work right
    please advise
    m
    ...
  • Kevin Support Team Lead
    Replied on September 26, 2016 at 11:21 PM

    I have checked the second form http://www.jotform.us/form/62694590564164 and I can see the fields you have specified in the pre-populated link are not in the form.

    Here is a screenshot of the current fields in the second form: 

    Populating fields to another form not working properly Image 1 Screenshot 20

    ?institution={institution}&surgicalCase={surgicalCase}&attending={attending}&a_email={a_email}&attending_vch={attending}&a_email_vch={a_email}&attending_lch={attending}&a_email_lch={a_email}

    I would suggest you to double check the fields that you want to pre-populate, please make sure they have the same name in the form and the link.

    Also, do note that if you want to pre-populate a value in a dropdown, check box, or matrix field (using radio buttons or check boxes) then the option must be the same, so if the option in the first form is "Option 1" then it should be the same in the second form "Option 1" exactly the same. 

    Please make the changes on your form and try again, do let us know how it goes.