What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    How To Send Selected POST Data on a Custom Thank You Page URL

    Asked by burlakko 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!

    submitted data thank radio buttons POST post data send post
  • Profile Image
    JotForm Support

    Answered by Charlie on January 26, 2015 at 11:03 AM

    Hi,

    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.

    http://www.jotform.com/help/211-Setting-Up-the-Thank-You-Page 

    Here's the guide on how to Send POST Data from JotForm to a PHP custom thank you page. 

    http://www.jotform.com/help/213-Send-POST-Data-From-JotForm-Using-PHP-in-Custom-Thank-You-Page 

     

    I hope this helps. Let us know if you need more information on this.

    Thank you.

  • Profile Image

    Answered by burlakko 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.

  • Profile Image
    JotForm Support

    Answered by Charlie on January 26, 2015 at 01:53 PM

    Hi,

    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.

    Example.

    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.

    Thank you.

  • Profile Image

    Answered by burlakko on January 28, 2015 at 09:21 AM

    Got it! Thank you Charlie!

  • Profile Image
    JotForm Support

    Answered by Charlie 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.

    Kind regards.