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

    Can I pass the value of a field to another form?

    Asked by Winwintendering on May 06, 2015 at 02:50 AM

    I have a signup form with fields Name, Email (verified), Company

    The thankyou page is directed to another JotForm (contract)

    Can I pass the field values between the signup form and the contract form?

     

     

  • Profile Image
    JotForm Support

    Answered by Chriistian on May 06, 2015 at 09:13 AM

    Hi Winwintendering,

     

    Thank you for contacting us.

     

    This is quite possible with your two forms. But the solution I thought of requires an extra custom (thank you) page. Here's the solution I thought of:

     

    1. Your first form will redirect to a custom URL thank you page as usual. However, with this solution it should redirect to the new thank you page you will create in item (2). Also, you need to enable your first form to send POST data to your new page. Here's a guide on how to Send POST Data From JotForm Using PHP in Custom Thank You Page.

     

    2. Your new thank you page should handle the POST data passed to it by the first form using PHP script (requires knowledge in PHP). The thank you page should redirect to your second form passing a URL parameter. For example:

    ------------------------------------------------

    $data = $_POST[{data from first form}];

    header("Location: https://rm161.infusionsoft.com/app/orderForms/DB2015-TUSignup?data=" . $data); // redirect to second form

    ------------------------------------------------

     

    3. The 2nd form should handle the URL parameter sent to it by the page in item (2). Here's a guide on Prepopulating fields to your JotForm via URL parameters.

     

    I hope that helps. If you can specify the data that need(s) to be passed between your two forms, it would be great.

     

    Thanks.