How to pass data from one form to another?

  • Profile Image
    jtquon
    Asked on August 06, 2018 at 07: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
  • Profile Image
    Kevin_G
    Answered on August 06, 2018 at 07: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. 

  • Profile Image
    jtquon
    Answered on August 06, 2018 at 08: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
    ...
  • Profile Image
    Kevin_G
    Answered on August 06, 2018 at 09: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.