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

    Passing data from one form to another for printing

    Asked by d1vp on June 09, 2015 at 12:00 PM

    I would like to use data that has been entered on my form "Local 2881 Travel Form", export into the "Travel Claim 2014 5.0".

    Our office and field staff utilizes the "Travel Form 2014 5.0" for reimbursement of travel expenses and are used to seeing the same report format (and I hesitate to say easily confused, but they like things consistent).

    My hope is that I can utilize the data entered, and when the 'Print' option is selected, the data from the "Local 2881 Travel Form" will populate into the 'Travel Claim 2014 5.0" for printing.

    I still retain the data for analytic purposes.

    Thank you,

    Paul

     

    Page URL:
    https://secure.jotform.us/form/50515115703141

    print URL parameters print forms
  • Profile Image
    JotForm Support

    (Private)

    Answered by Mike_G on June 09, 2015 at 02:18 PM

    To my understanding, there is Print button on the "Local 2881 Travel" Form then, when it is clicked the data entered by form submitters on that form will then be passed to the "Travel Claim 2014 5.0" Form and will be printed automatically, is that correct?

    For the first part, you can pass data from one form to another using this guide: Prepopulating-fields-to-your-JotForm-via-URL-parameters

    But the only way that it can be passed is by clicking the "Submit" button on the first form. Meaning, the "Print" button has no capability of doing this. You may change the "Submit" button text and just remove the "Print" button.

    As for the second part of your request, which is automatically printing the "Travel Claim 2014 5.0" Form after data has been transferred from "Local 2881 Travel" Form,  it can be possible if you add some scripts on the source code of the "Travel Claim 2014 5.0" Form. 

    <body onload="window.print()">

    Please be noted that the source code should be embedded into a website, and you need to change the URL link on the first part (passing data from one form to another using URL parameters).

    Another way of doing the second part is by adding a "Print" button on the "Travel Claim 2014 5.0" Form. However, this button needs to be clicked to start printing after the data has been passed from the "Local 2881 Travel" Form. 

    I hope this helps. Let us know if you need any further assistance or you need any clarifications with the instruction provided. Thank you.