Transfer data from a form to another.

  • jimtrevor282
    Asked on February 2, 2021 at 11:36 AM

    Is it possible to implement the following use case with your API methods?

    Let's say I have a two-page form. User answers questions on Page 1 and presses Next (not Submit). The responses to those questions will be sent to an external API and a specific information received from that API will be displayed on the page. The user will need this information to answer questions on Page 2.

    cleardot Screenshot 10

  • Amin JotForm Support
    Replied on February 2, 2021 at 2:38 PM

    This can be done using the two forms by redirecting form respondents to your second form after submitting the first form as shown below:

    1594425032screenshot www Screenshot 10

    Related guide: Redirecting-Users-to-a-Different-Page

    In the screenshot above, put a special link to pass data from form 1 to form 2. That special link will populate empty X field(s) in Form 2 with Y filled field(s) in Form 1 as shown below.

    04 20 2017 1492681471 Screenshot 21 Related guide:

    How-to-automatically-pass-form-data-to-another-form

    Does this answer your question?

  • jimtrevor282
    Replied on February 2, 2021 at 2:55 PM

    I see. So Form 1 will have only Page 1 fields and Form 2 will have both Page 1 and Page 2 fields. User will start with Form1, and will be forwarded to Form 2 upon pressing Next button which is Submit for this form. At the same time all inputs on Form 1 will be pre-populated into corresponding empty fields on Page 1 of Form 2. And since the data is already summitted into the database from Form 1, I can call your GET /form/{id}/submissions method to pass data into the external API and populate results into Form 2 during its loading.

    Am I missing anything?


  • Cecile JotForm Support
    Replied on February 2, 2021 at 8:02 PM

    Hi,

    If you just want to transfer data from Form 1 to Form 2 after the user fills Form 1, you have the option to not use the API to prepopulate Form 2.

    Related Guides:

    Prepopulating-fields-to-your-jotform-via-url-parameters

    Redirecting-Users-to-a-Different-Page

    How-to-automatically-pass-form-data-to-another-form

    Should you have any other concerns, kindly let us know.

    Thank you.