How to pass data from one form to another?

  • jtquon
    Asked on August 6, 2018 at 7:23 PM
    Hi – I’m trying to pass parameters over from the first form to the main form and I’m having issues with the full name field…
    This is my test website:
    https://form.jotform.com/82176468709166
    Per the instructions, I have filled out the email as follows:
    “You have started a doctor locator entry for Dr. {physicianName}.
    To continue the entry at any time, please go here:
    https://form.jotform.com/82176312309150?session={physicianName}&physicianName12[first]={physicianName[first]}&physicianName12[last]={physicianName[last]}

    However, I’m having issues grabbing the last name out of my physician name field. Can you help?
    Thanks,
    Jeff
  • Kevin Support Team Lead
    Replied on August 6, 2018 at 7:33 PM

    The URL structure is incorrect, please kindly see the errors highlighted here: 

    https://form.jotform.com/82176312309150?session={physicianName}&physicianName12[first]={physicianName[first]}&physicianName12[last]={physicianName[last]}

    With "physicianName[last]" you will capture the value as long as you're using the correct field name and the variable "{physicianName:last}" contains the data, so the correct URL should be this one: 

    https://form.jotform.com/82176312309150?session={physicianName}&physicianName12[first]={physicianName:first}&physicianName12[last]={physicianName:last}

    I hope this helps. 

  • jtquon
    Replied on August 6, 2018 at 8:43 PM
    It is helpful… but it appears that even after I do this… and get to the main form and fill out the first page of the main form so that it “saves” the entries to the session, I am unable to come back to the saved entries via the link:
    https://form.jotform.com/82176312309150?session=Thai+$&physicianName12[first]=Thai&physicianName12[last]=$&intersectEnt45=jquon@intersectent.com
    or
    https://form.jotform.com/82176312309150?session=Thai+$
    Thanks,
    Jeff
    ...
  • Kevin Support Team Lead
    Replied on August 6, 2018 at 9:59 PM

    The issue may be happening due to the special characters "+$" which are usually interpreted in a different way in URLs. If you want to generate an unique session id you may try using the random value generator and use only letters and numbers.

    Here's the widget: https://widgets.jotform.com/widget/random_value_generator

    This guide will help you adding the widget to your form: https://www.jotform.com/help/252-How-to-Add-a-Widget-to-Your-Form 

    I hope this helps.