- Kgr0upAsked on April 05, 2017 at 02: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:
thanks in advance
- JotForm SupportBJoannaAnswered on April 05, 2017 at 04: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.
You can try to append filed values to URL of your webpage, like my colleage suggest on this thread:
Also please check this guide:
Let us know if you need further assistance.
- Kgr0upAnswered on April 07, 2017 at 01: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...
- JotForm SupportliyamAnswered on April 07, 2017 at 02: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.