-
truehealingAsked on May 6, 2016 at 10:46 AM
I am having difficulty trying to figure out how to pre-populate from one form to another, the following fields:
- Matrix Survey Field
- Text Area
- Configurable List
Specifically, please see "Medical Information" on page 2 (Matrix field), "Please supply details..." text area on page 2 and "Please specify issues..." (Configurable List) on page 2.
Please advise.
Thanks!
Page URL: https://form.jotform.com/61154125016140 -
David JotForm Support ManagerReplied on May 6, 2016 at 11:57 AM
In order to populate a form matrix field with another form's matrix field value, you need to follow this guide: http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters
Here is how to build the URL, example:
1) Get the URL of the second form that will receive the parameters from the first form:
https://form.jotform.com/61216754997165?
2) Load your second form and inspect and get the name of the radio items for the first row :
2) Assign it to the URL:
https://form.jotform.com/61216754997165?medicalInformation[0]
3) Then load your first form and inspect and get the name of radio items for the first row:
medicalInformation[0]
4) Remove the brackets from the number index, and add a colon before it:
medicalInformation:0
5) Now put it in between curly brackets: {medicalInformation:0}
6) Join in in the URL you are building:
https://form.jotform.com/61216754997165?medicalInformation[0]={medicalInformation:0}
Now repeat the steps for the rest of rows. You will have something like this:
https://form.jotform.com/61216754997165?medicalInformation[0]={medicalInformation:0}&medicalInformation[1]={medicalInformation:1}&medicalInformation[2]={medicalInformation:2}&medicalInformation[3]={medicalInformation:3}&medicalInformation[4]={medicalInformation:4}&medicalInformation[5]={medicalInformation:5}
Let us know if you need more help.
-
truehealingReplied on May 7, 2016 at 5:11 PM
Thanks much for your response.
On the same page (#2) of this form, there is a Configurable List widget. I have looked at the "name" within "Inspect element" but am having a hard time figuring out the correct fields to add to the url. Could you please help with this?
Thanks again!
-
jonathanReplied on May 7, 2016 at 6:13 PM
Hi,
Unfortunately the same solution will not work if using the Configurable List widget.
Since widgets are being loaded on its separate iframe on the form, you will not be able to pass or capture values between forms when using the widget.
Let us know if you need further assistance.
-
truehealingReplied on May 10, 2016 at 7:04 PM
Hi,
Thanks for your responses! I have simplified the url to exclude the iframe element and am now having another issue.
For whatever reason, it seems like not all the elements are being passed on to the second form. It would miss something or the other regardless of what options are selected. Here's the url I have so far:
Am I doing something wrong?
-
David JotForm Support ManagerReplied on May 10, 2016 at 7:12 PM
Could you please specify the fields that are not passing through?
-
truehealingReplied on May 10, 2016 at 7:23 PM
That changes depending on the selections I am making. There's some conditional logic applied on a few fields, so what options show up depend on what was previously selected.
As an example, if I select "Someone else" on the first field AND "Office Call" in the next field, the selected "Staff Name" isn't being passed. Also "Someone else" isn't selected either.
So depending on what options are selected in various fields, some fields are passed and others are not.
-
David JotForm Support ManagerReplied on May 10, 2016 at 7:55 PM
I believe this is happening due to the "Clear hidden field values" option, try setting it to "Don't clear":
If that does not work, first, clone your form to have a back up: https://www.jotform.com/help/27-How-to-clone-an-existing-form-from-your-account
Then Restore your form to a point where the form was working as expected: https://www.jotform.com/help/294-How-to-View-Form-Revision-History
-
truehealingReplied on May 16, 2016 at 1:53 PM
Hi again!
Disabling the "Clear hidden fields" value didn't help.
All I am trying to do is get a dump, if you will, of the information filled out in the first form onto the second form, only for reference purposes.
Is there another way of doing that? Like, maybe, a print of form 1s output?
Thanks much!
-
Kevin Support Team LeadReplied on May 16, 2016 at 3:12 PM
I was not able to check your form since it was deleted, could you please provide us the new link?
If you're trying to print the submitted data on the second form, this is the only way to do it, I would suggest you to double check the links and the populated data following the steps provided on the first reply on this thread, I think this will help to avoid confusion and start including the correct fields in URL, also try first pre-populating the fields with fixed values, this app will help you with that: http://prepopulate.jotform.io/
Once you have the URL with these fixed values you can start adding the dynamic values from the fields of the form.
-
truehealingReplied on May 16, 2016 at 4:13 PM
Thanks for all your support!
-
victorReplied on May 16, 2016 at 5:50 PM
On behalf of my colleagues, you are welcome. If you require additional assistance, do let us know. We will be glad to help.