How to create two calculation from a single form field?

  • Bevan Hendon
    Asked on July 26, 2023 at 9:48 AM

    I have a form that generates 2 different calculations based on the same questions. With a question response scaled 0-10, is it possible to have one calculation output a simple 0-10 score and another output 0=1 and >0=0?

  • Christopher JotForm Support
    Replied on July 26, 2023 at 12:32 PM

    Hi Bevan,

    Thanks for reaching out to Jotform Support. You can create a conditional logic for each computation. Here's how to do it:

    Create conditional logic for simple calculation:

    • In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    • Click on Conditions.
    • Click on Add a new condition.
    • Click on Update/Calculate Field.
    • Configure the conditional logic as provided below.

    How to create two calculation from a single form field? Image 1 Screenshot 70

    • Click on Save.

    How to create two calculation from a single form field? Image 2 Screenshot 81

    Create conditional logic for 0=1:

    • In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    • Click on Conditions.
    • Click on Add a new condition.
    • Click on Update/Calculate Field.
    • Configure the conditional logic as provided below.

    How to create two calculation from a single form field? Image 3 Screenshot 92

    • Click on Save.

    How to create two calculation from a single form field? Image 4 Screenshot 103

    Create conditional logic for >0=0:

    • In Form Builder, in the orange navigation bar at the top of the screen, click on Settings.
    • Click on Conditions.
    • Click on Add a new condition.
    • Click on Update/Calculate Field.
    • Configure the conditional logic as provided below.

    How to create two calculation from a single form field? Image 5 Screenshot 114

    • Click on Save.

    How to create two calculation from a single form field? Image 6 Screenshot 125

    You can check out my demo form here.

    Give it a try and let us know how it goes.

  • bhendon14
    Replied on July 27, 2023 at 1:37 AM

    All sorted, thank you!!