Issue T2425
Visible to All Users

VisibleIf doesn't work on True or False questions

created 6 years ago

Hi Guys,

I have a dropdown called question1 with values of True & False.

Under the dropdown i have two HTML elements that are set to Visible = false.
On HTML 1 control in the Visible If field i have set this: {question1} = 'False'
On HTML 2 control in the Visible If field i have set this: {question1} = 'True'

When i select the dropdown both hidden HTML controls are shown. If i use any other text ie: True1 or False1 it works.

Clipboard-File-1.png

SurveyJS version" 1.1.0 (React)

Answers approved by surveyjs Support

created 6 years ago

Hello Peter,
I have just checked it. It works as expected. Here is the example.
Could you please fork this plunker, modify it so it doesn't work, save it and a link on not-working example here?

Thank you,
Andrew
SurveyJS Team

    Show previous comments (6)

      I have fixed the issue with via this commit. I believe, I have added tests for all possible cases now.
      We will include the fix in the next minor update v1.1.2, that we will release likely tomorrow.

      Thank you,
      Andrew
      SurveyJS Team

        Great.
        Thanks for the quick fix.

          You are very welcome!