- burlakkoAsked on January 26, 2015 at 07:51 AM
Ok. In my form I have a few radio buttons which change the thank you page. Also I need to send to those optional thank you pages some data submitted by user by POST method.
So yeah, I know about the 'Send Post Data' in Advanced options. But I need to send only part of submitted data to thank you page.
E.G. To payment thank you page I need to send only amount of money and seller's id, but not the private data of user.
So the question is - how to send different data to different thank you pages??
Thanx in advance!
- CharlieAnswered on January 26, 2015 at 11:03 AM
Upon checking your account, I see that you haven't created a form yet? Are you sending data to a custom thank you page? One that is hosted in your end? Let's say www.mywebsite.com/thankyoupage.php, here we can use the option "Send POST Data" and the information in your submission will be easily fetched by your PHP script.
Here's the basic setup for "Thank You Page" option.
Here's the guide on how to Send POST Data from JotForm to a PHP custom thank you page.
I hope this helps. Let us know if you need more information on this.
- burlakkoAnswered on January 26, 2015 at 12:31 PM
Hi Charlie! Thank you for reply, but that didn't help me. I'll try to be more specific.
You're right, I haven't created a form yet. I'm editing a form created by another user. Do you need an id or something else to be more helpful?
So i've got a huge form with all sorts of fields divided into 7 steps. On one of steps there is a radio button group which asks what payment method would a customer choose. According to customer's choice (with the help of 'Conditions -> Change Thank You URL after submission') Thank You URL is changes to the proper payment web site.
For example customer choose the 'I'd like to pay with the Interkassa payment system' and Thank You URL changes to https://sci.interkassa.com/
Among all the form fields values I need to pass to https://sci.interkassa.com/ only seller_id, price_of_product and some other values with POST method. But the problem is that it sends to https://sci.interkassa.com/ all the data submitted by customer including some sensitive data.
So the question is how to send individual sets of values from the form to the particular Thank You URL???
P.S. Yes I already turned on the Send POST Data option.
- CharlieAnswered on January 26, 2015 at 01:53 PM
I'm not sure if you could filter POST data directly during submission, we currently do not have that kind of option.
But, you could choose what to POST Data to send if you will have a custom redirect PHP script.
If Radio button is selected to pay using Interkassa-> www.mywebsite.com/custom_redirect_page.php, using the custom page that I have it will fetch the data I only needed, after that I'll redirect that page to https://sci.interkassa.com, from there we can limit what POST data should Interkassa would receive.
To easily help you send your submission to an endpoint, you can use Webhook application.
If you are collecting payment from users, we recommend that you use our supported Payment Method gateways, this is to avoid fetching unnecessary sensitive information and avoid violating our Terms.
Another way you can pass selected field values is using the URL parameter value, although this applies when your passing it on another JotForm form. Here's that guide: http://www.jotform.com/help/71-Prepopulating-fields-to-your-JotForm-via-URL-parameters. I believe this is the same with the Send POST data, although, you can still try using field names instead in the URL parameter.
I hope this helps or at least gives you an idea on how to proceed.
- burlakkoAnswered on January 28, 2015 at 09:21 AM
Got it! Thank you Charlie!
- CharlieAnswered on January 28, 2015 at 09:31 AM
You're welcome. Please do let us know if you need more assistance on this.
If you have other concerns aside from this, feel free to open up a new thread here in the forum.