JotForm is a free online form builder which helps you create online forms without writing a single line of code. No sign-up required.
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.
Multiple condition to update the value of one field does not seems to work.Asked by EngPaired on August 12, 2015 at 12:52 AM2nd Question - I have two fields that both conditionally set 'Answer.' If I select '1' for 'Question 1' it changes answer to 'A' then if I select '4' for 'Question 2' it changes to B. If I go back to Question 1 and click '1' again it will change back to A.
So are the conditional statements tied to the filling out of specific fields then? and they don't get evaluated again at the end? If so does it matter what order I put conditional statements in the list of conditions?
* as a note, the actually application that I'm using this in is to set the value of a hidden field, so I don't really care what it displays as people are filling out the form, I just want to use logic to come up with a final answer that I'll see when they submit
Please be noted that if you add two conditions to update the value of same form field and both the conditions are triggered, there will be a conflict. In such cases one condition will be overruled by other based on the priority. You may like to check the following guide for more information on how to set the order by for conditions : https://www.jotform.com/help/230-How-New-Conditions-For-and-Order-by-boxes-work-in-conditional-logics
Hope this helps.
Do get back to us if you have any questions.
This does not seem to match what I'm seeing in the example form. If I have two conflicting rules it does not matter which one is listed in the first priority, it only matters which was the last field that I updated. If I have question 1 and question 2 both updating 'Answer' it doesn't seem to matter what order I put the conditional statements in, it only matters which was the last one I touched when filling out the form.
Am I missing something?
I think that your assumption is correct, only the most recent corresponding 'Update a form field value' is actually evaluated (other 'update' conditions are not considered).
In case you use Show and Show Multiple conditional actions (based on a single field), I would like to suggest to not mix them. These conditions might conflict, so it is generally recommended to stick with one conditional action type per field. The Show Multiple actions are more predictable in my experience.