Form Calculation widget is not working.

  • ModernAyurvedic
    Asked on December 18, 2019 at 8:30 PM

    I am trying to set up an auto scored personality type test using a combination of hidden number fields (set up using conditional logic) and a calculation widget.

    The conditional logic is working (numbers get placed in the number field) but the calculation widget is not.

    Can you please help me.


    Many thanks

    Dani


  • Ashwin JotForm Support
    Replied on December 18, 2019 at 11:26 PM

    I did check your form and found that you have added several fields in the form calculation widget to calculate the amount. 

    Can you please let us know which fields you want to add in "Vata", "Pitta" & "Kapha" for the calculation? Please explain your calculation requirement in detail and we will take a look.

    We will wait for your response.


  • Dani
    Replied on January 5, 2020 at 11:34 PM

    Hello, sorry for the late response I thought I had replied. 


    I currently have three calculation widgets set up - one for all 'vata' responses, one for all 'pitta' responses, and one for all 'kapha' responses. 

    this is a simplified version of how the form is constructed

    question 1

    i. if checked 1 point should go to kapha

    ii. if checked 1 point should go to pitta

    iii. if checked 1 point should go to vata

    <hidden conditional logic fields>

    A. vata: if question 1 = iii then field = 1

    B. pitta:  if question 1 = ii then field = 1

    C. kapha: if question 1 = i then field = 1


    question 2

    i. if checked 1 point should go to pitta

    ii. if checked 1 point should go to vata

    iii. if checked 1 point should go to kapha


    <hidden conditional logic fields>

    D. vata: if question 2 = ii then field = 1

    E. pitta:  if question 2 = i then field = 1

    F. kapha: if question 2 = iii then field = 1


    Calculation widgets

    Vata = A + D + n

    Pitta = B + E + n

    Kapha = C + F + n


    Perhaps I need to add a negative term to the conditional logic (see bold)?

    question 1

    i. if checked 1 point should go to kapha

    ii. if checked 1 point should go to pitta

    iii. if checked 1 point should go to vata

    <hidden conditional logic fields>

    A. vata: if question 1 = iii then field = 1, if question 1 does not = iii then field = 0 

    B. pitta:  if question 1 = ii then field = 1, if question 1 does not = ii then field = 0 

    C. kapha: if question 1 = i then field = 1, if question 1 does not = i then field = 0 

  • VincentJay
    Replied on January 6, 2020 at 1:10 AM

    Hi,

    Is there a form sample you can share so we can try to replicate it or investigate the condition further?

    I tried reading the condition you shared and I am having difficulty understanding it. Could you please explain it a bit more so we can assist you properly?

    We'll wait for your reply. Thank you.

  • ModernAyurvedic
    Replied on January 8, 2020 at 2:33 AM

    sorry if I was unclear, there is no template but the form draft is sitting in my forms. Are you able to access our account? Or is there a way I can email you directly or speak with you?

    thanks

  • jherwin
    Replied on January 8, 2020 at 5:30 AM

    We can see the form you're working on. This is the form (193477979127881), right?

    However, your requirements are a bit unclear to us, perhaps you can explain this in video/screencast so we can provide you with the appropriate workarounds/suggestions?

  • ModernAyurvedic
    Replied on January 8, 2020 at 11:22 PM

    Thanks for your time. I have created a simplified version of what I am trying to achieve in the personality quiz using 'fruit types' instead of body types. Form 200078549626056. I set it up using conditional logic following the exact method I have described. The calculation widget works in this instance.

    Maybe you can look at this form and get a better understanding of what I am trying to do in form 193477979127881.

    In the meantime I will check all my conditional logic fields and the the calculation widget input. 

    Kindest regards

  • jherwin
    Replied on January 9, 2020 at 1:53 AM

    I see, thanks for providing a demo form.

    There seems to be a conflict of conditional logic for this form: https://form.jotform.com/193477979127881 which is why it's not working like the demo form you made.

    Please review and fix the condition logic and let us know if the issue persists.