What is JotForm?
JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.

At JotForm, we want to make sure that you’re getting the online form builder help that you need. Our friendly customer support team is available 24/7.

We believe that if one user has a question, there could be more users who may have the same question. This is why many of our support forum threads are public and available to be searched and viewed. If you’d like help immediately, feel free to search for a similar question, or submit your question or concern.


  • Profile Image

    Calculation does not calculated if radio button is change, then returned back to previous selection

    Asked by wolfpaw69 on April 04, 2017 at 08:11 PM

    No sure how to title this but that was the best I could come up with.  Anyway, now for the explanation.

    On my form I have a radio button that calcultate the termite inspection if the client chooses yes or no.  The calculation uses the location to determine if there is a travel cost.

    Example: The base cost is $100 (Payson). If the client chooses Strawberry-Pine, the cost would be $125.  However, if the client chooses Strawberry-Pine, then chooses Payson, then goes back to Strawberry-Pine, the calculation only uses the base price, which shorts the price by $25 in the case.  I hope that explains it good enough.

    The first screen shot shows the price at $125.  The second screen shot is the same as the first except the location is changed from Pine-Strawberry to Payson which changes to $100, then changed back to Pine-Strawberry but it does not calculated after that, it keeps the base cost of $100 when it should say $125.

    Page URL:
    https://form.jotform.us/53127112452141

  • Profile Image
    JotForm Support

    Answered by BJoanna on April 05, 2017 at 03:22 AM

    I have inspected your form and I was able to replicate mentioned issue. This is happening because when NO is selected inside of Termite Inspection field it is passing 0 to Termite Travel Cost hidden field and it is overriding value 25 that is passed to same field from dropdown field "Location (Town or City)". 

    On my cloned form I made some hidden fields visible so that you can see the issue.

    To resolve this issue you will have to modify your conditions that you have set to perform calculation. Maybe you can perform calculation for Total Termite Inspection Cost field with Travel Cost field instead of Termite Travel Cost. 

    I also think that it would be easier to perform calculation with Form Calculation widget instead with conditions.

    Inside of this guide you can find how to do it:

    How to Perform Form Calculation Using a Widget

    You would also need to assign calculation values to your dropdown and radio button fields.

    How to Assign Calculation Value

     

    Hope this will help. Let us know if you need further assistance.