Bug detected in conditonal calculations

  • Profile Image
    Asked on August 01, 2017 at 11:28 PM

    When calculating the Total price for the picks of the users, the sums do not work, they actually gives much bigger numers.

  • Profile Image
    Answered on August 02, 2017 at 03:47 AM

    I inspected your form http://www.jotformz.com/form/72124924767664 and is seems that there is a conflict between your conditions. 

    The field 'Total a pagar' has a default value set to 200 and you are using that field inside of all calculations that you have set and you are all passing calculation to the same field.

    I would suggest to add another field to the form to which you would pass a calculation.

    Or you can use a Form Calculation widget to perform a calculation inside of the form. 

    How to Perform Form Calculation Using a Widget

    You would also need to use basic a radio button and dropdown fields and assign them calculation values. 

    How to Assign Calculation Value

    Hope this helps to solve the issue.

  • Profile Image
    Answered on August 02, 2017 at 02:24 PM

    Hi Joanna,

    your suggestions worked fine. I workaround the issue by using a separate -hidden- number field for each item, and a calculation widget which sum up all the fields.

    Anyway there is still a bug in the previous scenario mentioned in the original thread, since the logic conditions and calculations were ok, but the total was set to exactly 11 times the item value.

    Thanks for your help.

  • Profile Image
    Answered on August 02, 2017 at 03:51 PM

    I am glad to hear that you found a work around for your issue. 

    I do not think that there is a bug because you were using the same field to perform multiple calculations. You added a default value to the field, you used the same field in multiple calculations and you were also passing the calculation to the same field. I think that there was a loop and because of that calculation was not working correctly. 

    Feel free to contact us if you have any other questions or issues.