Radio button doesn't calculate properly

  • Profile Image
    wolfpaw69
    Asked on October 11, 2016 at 08:36 PM

    On my form a I have a field (Total Termite Inspection Cost) that calculated based upon location.  The base cost is $100 plus travel cost.  If the customer chooses "Yes" it calculates both fields.  If the customer clicks "Yes", then "No", and "Yes" again, they only get charged the base cost.  The field does not calculate upon selection.  How do I fix that?

    In the screen shot below you can see this happening.  The first slide is correct, the second slide the field is hidden because the client selects "No", the third slide the client selects "Yes" again which does not calculate travel cost.

  • Profile Image
    ashwin_d
    Answered on October 11, 2016 at 11:20 PM

    Hello wolfpaw69,

    I did test your form and I am able to replicate the issue you are having. Let me rework on your form's condition and get back to you soon.

    Thank you!

  • Profile Image
    wolfpaw69
    Answered on October 14, 2016 at 11:52 PM

    Haven't heard back.

  • Profile Image
    EltonCris
    Answered on October 15, 2016 at 03:54 AM

    @wolfpaw69

    It is because this condition is triggered when you select to NO.

    This resets the Termite Travel Cost value to zero (0) when you select NO.

    So here's how your condition works base on your current setup.

    $125 when YES (100+25)

    $100 when NO (100+0)

    $100 when YES (again)

    Unfortunately, the condition does not analyze what value was taken away and add it back again if needed, unless you have defined that in your condition.

    So to fix it, you will have to create another condition that adds the $25 back when you select YES

    Example:

    Hope this helps!