calculation not working

  • FrancisWest
    Asked on November 19, 2017 at 11:30 AM

    Hi i have set up calculation values in my single and multiple questions but when settion up the form calculation and testing the form,there is no value displayed on the calculation.

    Please assist.

  • Richie JotForm Support
    Replied on November 19, 2017 at 12:05 PM

    Hello,

    I have cloned your form and the reason no value is passed to the calculation widget because you need to place the value to a text to calculate it.

    First, add a short text entry I named it score 1

    calculation not working Image 1 Screenshot 70

    Then go to settings>Conditions>Update Calculate Field

    calculation not working Image 2 Screenshot 81

    If>"4.You receive the following email..." State>isFilled

    Do>"Copy a Field's Value" From:"4.You receive the following email..." TO>Score1

    It calculates the assigned value of your radio button and passes  it's value to the short text named "Score1"

    44976 1 Screenshot 92

    This would be the outcome, when a radio button with an assigned value will be clicked the value will show in the short text entry.

    calculation not working Image 3 Screenshot 103

     

    Now to calculate your Form Calculations, in your widget settings just add the field with the short text and add them all.

    calculation not working Image 4 Screenshot 114

    Lastly, add a condition SHOW/HIDE FIELD to the form calculation widget

    IF:"you calculation widget" State:IsEqualto Target:Value then Value:"your value to show a field"

    Do:show Field: "the field you want too show"

    calculation not working Image 5 Screenshot 125

    The final result would be depending on the value total

    calculation not working Image 6 Screenshot 136

    I hope this information helped you.

    Here is a guide to conditional logic

    https://www.jotform.com/help/57-Smart-Forms-Using-Conditional-Logic

    Here is the cloned form:

    https://form.jotform.com/73224943489971

    Best Regards.