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

    Is it possible to have calculating fields across 2 forms?

    Asked by Zack Homer on April 13, 2013 at 10:18 PM

    Hello,

    Below is the scenario I am hoping to execute.  I am hoping you can let me know of feasibility of this task....

    I would like to have one form where a person a person inputs a number.  The person will then select a button that says "Submit". This submit button will take them to a new form.  Simple enough.  However, I would like this new form to include calculated fields from the previous inputted numbers.  

    For instance, let's say a person inputs the number '20'.  After clicking submit, in this scenario I would like them to see on the next form the number "4", which would result from the calculation '20 times 0.20'.

    Is this type of calculation across multiple forms possible with JotForm?

    Thank you,

    Zack

    new form JotForm next select
  • Profile Image
    JotForm Support

    Answered by EltonCris on April 14, 2013 at 03:15 AM

    Hi Zack,

    That's possible with JotForm but calculations can't be done fields by fields. We do not have that in the form builder but this is pretty easy using your form source code and use custom scripts that calculates the field values. Here's How to get your Form Source Code

    In order to achieve this,

    1. Create a form with the fields for calculation and a total field where the total of the calculated values will be displayed. The total field will be also used for the prepopulation when the 1st form redirects to the second form.

    2. To redirect the 1st form to the 2nd form with the total result being prepopulated to a field from the 2nd form, simply use Custom URL as your thank you page.

    My Custom Thank you URL is: http://form.jotformpro.com/form/31031524997960?totalValue={total}

    http://form.jotformpro.com/form/31031524997960? - is the URL of the second form.

    totalValue - this is the field name from the second form where the value from the first form will be prepopulated to. To get field names, check this visual guide: https://shots.jotform.com/elton/get_field_name_inspect_element.png

    {total} - this is the field tag from the first form, this will be replaced with the real value taken from the total field of the first form.

    Demo for prepopulating of field to another form: http://form.jotformpro.com/form/31013238419951

    If you need any further assistance, make sure to contact us here. Thank you!