- gloeraAsked on July 25, 2011 at 12:59 PM
Hi, I am posting the data in return through the thank you page but I am not getting the data correctly for Matrix field. It is showing values as "Array".
My form is applied at:
Please fill it up and take a look at its result.
- JotForm SupportabajanAnswered on July 25, 2011 at 09:38 PM
I cloned your form and made a test submission to see the problem for myself and I did indeed see it. Perhaps this post may help you to resolve the issue but below is an alternative method that does not require Send Post Data to be enabled:
1. Load the form into the form builder and while on the Setup & Embed tab, click Email Alerts
2. Click one of the notifications
3. Click inside the table containing the Questions and Answers, select all [Ctrl+A] of it and copy [Ctrl+C] it
4. Close the notification and click the Thank You button, select Thank You message and click Next
5. Paste [Ctrl+V] the table you copied into this message, click Finish and save the form
Now run a test submission and see if the Thank You page is as you want it. Please let us know if you need additional assistance with this and we'll be glad to help.
- gloeraAnswered on July 26, 2011 at 07:29 AM
Thank you! your solution is wonderful if I had to show it to the user. But my requirement is to get that data and save it in a local file/database for my workings.
I have a php script which will do it but how can I get all the values correctly.
Can you just send the whole post values in the post variable?
- JotForm SupportliyamAnswered on July 26, 2011 at 11:14 AM
As stated by Wayne, this post will answer your concern about getting your submissions to post to your own database via POST submission.
Anyway, to explain: The values being sent out as post data from jotform is in a form of array. So to find out the post variables being sent out to your custom thank you page, try using this code inside your page:
Once you have placed that inside your custom thank-you php page, it will show something like this:
Array ( [submission_id] => 174669162243212635
[formID] => 11572124139
[ip] => 55.55.555.55
Now to get the specific value of the variable:
If for example you wish to get the submission id, the variable for that one would be $_POST['submission_id'];
If you want to get the IP address, just get the [ip] and use the $_POST variable as well so you will have $_POST['ip'] and so on. Now that you have the variables, feel free to use them for inserting to your own local database.
If you need further assistance, please let us know.
- khrisellAnswered on July 04, 2013 at 06:01 PMGreetings!We are happy to announce that we have released Jotform Webhooks, this feature would replace Send Post Data + Custom URL Thank You Page workaround in order to help you transfer forms data to your own database using your own script codes.
To know more about Jotform Webhooks, please click here.
Thank you for using JotForm. :)