Skip to content

enableWhen operator "=" and "!=" not working as expected #172

@StefanKlose

Description

@StefanKlose

Hi,

I want to use the enableWhen-feature. There seems to be an issue with the "=" and "!=" operators (for both integer and string answers).

I provided a small json excerpt (see below).

with this json I would expect that the text "Text 1" is only displayed, when I fully type "hello". instead it is shown on the first typed charactor.

can you reproduce and fix this?

  {
    "linkId": "1",
    "type": "string"
},
{
    "linkId": "2",
    "text": "Text 1",
    "type": "display",
    "enableWhen": [ 
        {
            "question": "1",
            "operator": "=",
            "answerString": "hello"
        }
    ]
},

kind regards
Dr. Stefan Klose

PS: a colleague just told me that this feature is not implemented (yet???)

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions