Passing data from one form to another for printing

  • d1vp
    Asked on June 9, 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

     

  • Mike_G JotForm Support
    Replied on June 9, 2015 at 2: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.

    Passing data from one form to another for printing Image 1 Screenshot 20

    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 onDISABLEDload="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.