Understanding the order of conditions

  • Profile Image
    Asked on January 12, 2016 at 01:58 PM

    It seems as though the default order of conditions is last-to-first based on how they were entered, so that the most recently created conditions are the first conditions to be executed in the form.

    What happens when a person is filling out the form and they change their answers, which affects the calculation conditions? Does the logic start all over again from #1? If not, how can I get it to do that?

    As I have been testing my form, I see that the calculations are often incorrect, and this seems to happen more often when there was a previous entry held in cache, and I make a change to that entry. I could just clear the cache, but I am also recognizing that it will be common for users to change their mind and/or play with the form while filling it out.

    Thank you so much for your help.

  • Profile Image
    Answered on January 12, 2016 at 04:31 PM

    Ye, the condition order is the executed the way of the last created. When update or calculating fields, values will remain unless you have another condition that will clear the value. If a users select a dropdown that update a text field A, then changes his mind and select another option that updates text field B. Both text field A and B will have values.

    If this text fields are require for another field, this will create a miscalculation. This is probably what you are viewing now. If your users change their minds, you would probably need to create another condition so clear the value of the first field.

    Please let us know if this helps.

  • Profile Image
    Answered on January 13, 2016 at 10:42 AM

    How can I create another condition to clear the value of the first field? Can you give me an example to get me started?

  • Profile Image
    Answered on January 13, 2016 at 01:40 PM

    Here is my demo form: https://form.jotform.com/53031855181956? 

    If radio button option No is selected data that are entered inside of text box field and text area field will be cleared. 

    I have accomplish this by creating hidden field which is blank, and I set conditions to pass values from blank field to text box and text area field if radio button option No is selected. 

    Here is similar form: https://form.jotform.com/53022280076951? 

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

  • Profile Image
    Answered on January 20, 2016 at 12:48 PM

    Similar to this question, is there a way to have multi-tiered conidition statements?  For example if date is greater than today and the name field is not blank, then produce a specific result?  I can get each written separately, but I can't find how to write them both together.

  • Profile Image
    Answered on January 20, 2016 at 01:57 PM

    You can add as many condition you would like in one statement. When you open the condition, you will notice a BLUE CROSS, pressing this will add a new condition. To remove the condition, you just need to press the GRAY MINUS SIGN