How to pass data from one embedded form to another embedded form?

  • Kgr0up
    Asked on April 5, 2017 at 2:11 PM

    I have a registration divided in 2 forms (by clients request), in the first form we have 5 basic fields (one is hidden) and when the person hits continue it takes them to a second form where the info from the first form is prepopulated in hidden fields in the second form plus a few more fields.

    At first I had the first form in my website with the wordpress.org option, but when hitting continue, it opens the second form in jotform directly (so the person is taken out of my wordpress site), I was told by a friend that by publishing the form in wordpress with the Iframe I could have the second form still show in my wordpress site, however this is not happenning.... is there actualy a way to to this? what am I doing wrong?

    this is a test form that I´m playing with:

    https://www.kgrouptravel.com/iadwp/

    https://form.jotformpro.com/70945330052954

    thanks in advance

  • BJoanna
    Replied on April 5, 2017 at 4:04 PM

    I am not exactly sure if this is possible. First you will need to redirect your first form to your second embedded form. 

    Redirecting Users to a Different Page

    You can try to append filed values to URL of your webpage, like my colleage suggest on this thread: 

    https://www.jotform.com/answers/854142 

    Also please check this guide:

    How to Automatically Pass Form Data to Another Form 

    Let us know if you need further assistance.

  • Kgr0up
    Replied on April 7, 2017 at 1:49 AM

    Actualy the question is not how to pass info from one form to another, I got that covered, thankyou. What I would like to do is not have to change the url at top, so people won´t see the code, because if they do, someone might change the amounts and affect the results... Thats why I was told to use the iframe, so the form would change with in the iframe, but would still be at the same url...

    like in the example bellow, I dont want this to be shown when changing from one form to another...

    https://form.jotformpro.com/70961129752965?fullName[first]=mendoza&fullName[last]={fullName:last&email7=df@m.com&address[addr_line1]=lne&address[addr_line2]=lndf2&address[city]=city&address[state]=stt&address[postal]=zip&address[country]=Macau&cellNumber=55&areYou=Travel%20Agent&uniqueId=LOVE-016&wouldYou36=No

  • liyam
    Replied on April 7, 2017 at 2:06 AM

    Unfortunately, there is other simple way on how to achieve this other than populating via URL parameters. Instead, if you would like to make it load on the back-end, you will need to have your own database on your website.

    So it's like that your first form, will submit at the back-end either with use of webhook or with your thank you page redirected to a page or script that will capture and store the POST data from your form. And this page or script will process to store the data to your own database on you website.

    Then let a server-side processing like with the use of PHP and AJAX to pull the data from your database to your page with the 2nd form in it and it will assign values to the fields. 

     

    Here is a guide on how to use webhooks: https://www.jotform.com/help/245-How-to-Setup-a-Webhook-with-JotForm

    Here is a guide on how to enable sending POST data to your thank you page: https://www.jotform.com/help/213-Send-Submission-Data-via-Post-Method-and-Thank-You-Settings 

    Here is a sample guide on how to make use of your form to submit data to your own MySQL database using PHP: https://www.jotform.com/help/126-How-to-send-Submissions-to-Your-MySQL-Database-Using-PHP

    If you think this is the way to go and/or you need assistance on this, please let us know. We'll be more than happy to assist.

    Thanks.