-
jimtrevor282Asked 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.
-
Amin JotForm SupportReplied 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:
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.
Related guide:
How-to-automatically-pass-form-data-to-another-form
Does this answer your question?
-
jimtrevor282Replied 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 SupportReplied 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.