Pass data from 1 form to another while forms are embedded.

  • canelzy
    Asked on November 15, 2019 at 1:03 PM

    I followed the link online and created the url of form 2 which will be prepopulated data from from 1. However, I have both forms embedded on my website. How exactly do I set up the url?


  • Kevin Support Team Lead
    Replied on November 15, 2019 at 3:35 PM

    First, make sure to have embedded your form using the default method, this guide will help you getting the code: https://www.jotform.com/help/34-Embedding-a-Form-to-a-Web-Page 

    The rest is the same, with the difference that you will replace the form URL with the URL where the form is embedded on and pass the parameters there. Example: 

    Using the form URL would be: https://www.jotform.com/12345?email=example@mail.com

    For the embedded form it would be: https://www.mysite.com/form?email=example@mail.com

    Kindly give it a try and let us know if you have questions. 

  • canelzy
    Replied on November 18, 2019 at 1:16 PM

    Worked ok. Thanks. Some fields not updating though. Here are the 2 forms. https://premiumlanguageinterpreters.com/order-form/

    second form will be emailed to the email on the first form. Please take a quick look and see if I'm missing something. 

    Here is the url

    https://form.jotformeu.com/93161077245355?fullName37={name}&email3={studentEmail6}&phone={number}&address={address67}&date42={date71}&language={language}&duration={durationhours}&time={startTime69}

  • Kevin Support Team Lead
    Replied on November 18, 2019 at 7:29 PM

    Thanks for providing the details. 

    I have been testing your form and found the issue is related to the fields "Date" and "Time", these fields are composed by sub-fields that need to be pre-filled, for example, to fill the date and time you need the following:

    https://form.jotform.com/80317767480967?date[month]=11&date[day]=18&date[year]=2019&time[hourSelect]=4&time[minuteSelect]=20&time[ampm]=PM

    On this URL you're using each sub-field to set the values, basically, you need to split the field's you're pre-populating instead of pre-populating one single field. The only thing that changes is the field name which is highlighted on green on the example above. 

    Also, I noticed you're using a drop down to ask for time on your first field, you will need to change that to a time field too, otherwise you will not be able to split the time from the drop down field.

    I hope this helps.