What's the logic behind this conditional behavior?

  • Profile Image
    boligskjema
    Asked on March 22, 2017 at 10:09 AM

    Is it a bug or reasonable logic that makes the red text in my demo form visible when the page loads, even though it's hidden by default? I understand that it is my conditional rules that trigger this (see the attached image), but both rules should be False when the page loads, and therefore do nothing.

    If I change their order, the red text will be hidden until the first question is answered Yes (like it should), but that seems more like a hack than fixing the real problem.

    When the forms get longer, with a lot of conditional rules, this apparently illogical behavior gets harder to tame.

  • Profile Image
    Kiran
    Answered on March 22, 2017 at 02:01 PM

    When the form is loaded neither of the options is selected on the form which makes both the conditions to fail and so the hidden text should not be displayed. However, it is not required to set two conditions for show and hide for the field unless the fields in the rules are different. If the condition is set to show, it will be automatically hidden when the condition is false and it is also not required to hide the field manually. 

    Based on your requirement, only one condition is sufficient and the text field need not be hidden manually.

    Hope this information helps!