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

    Default selection of dropdown is not retained if condition to update the value/selection is added.

    Asked by EngPaired on August 11, 2015 at 05:44 PM

    I'm trying to understand some more details on how the conditional logic options are evaluated. Specifically I want to know when they evaluate and what happens on conflicts. 

    Here is an example form:


    1st Question - For 'Answer' I have C selected by default, but it appears that since it is tied to a conditional statement that it defaults to nothing selected, whereas 'Answer2' which does not have any conditional statements tied to it keeps it's default value of D. Can I not use the selected option if I am also using conditional statements?

    2nd 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

    Page URL:

  • Profile Image

    Answered by EngPaired on August 11, 2015 at 05:57 PM

    One further Question - If I select '1' and then select '4' 'Answer' shows 'B.' But then if I change my answer to question 2 to '5' 'Answer' stays as 'B' even though my conditional logic says that if 'Question 1' is 1 'Answer' should be 'A'.

    Is there a way to make the conditions all evaluate again? Or another way to make sure that this error does not occur?

  • Profile Image
    JotForm Support


    Answered by ashwin_d on August 12, 2015 at 12:54 AM

    Hello EngPaired,

    #1. I did test this and I am able to replicate the issue you are having. If you have set the default selected value of a dropdown it works fine but as soon as a condition is added to change the selection of the dropdown, the default value is not retained in form. 

    I am reporting it to our back end team. We will get back to you as soon as we have any update form them.

    I have moved your second question to a new thread and you will be answered here:  http://www.jotform.com/answers/635911 

    Thank you!