Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

The visibleIf expression doesn't work for Rating Scale items #8815

Open
JaneSjs opened this issue Sep 17, 2024 · 0 comments
Open

The visibleIf expression doesn't work for Rating Scale items #8815

JaneSjs opened this issue Sep 17, 2024 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Sep 17, 2024

T19823 - Assistance with Custom Widgets in SurveyJS
https://surveyjs.answerdesk.io/internal/ticket/details/T19823


To reproduce the issue, load the following JSON at https://surveyjs.io/create-free-survey.

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "boolean",
          "name": "question1"
        },
        {
          "type": "rating",
          "name": "question2",
          "autoGenerate": false,
          "rateCount": 3,
          "rateValues": [
            1,
            {
              "value": 2,
              "visibleIf": "{question1} = true"
            },
            3
          ]
        },
        {
          "type": "checkbox",
          "name": "question3",
          "choices": [
            1,
            {
              "value": 2,
              "visibleIf": "{question1} = true"
            },
            3
          ]
        }
      ]
    }
  ]
}

You can see that checkbox items correctly disappear when changing a Boolean value, however, a rate item doesn't reflect to this change.

2024-09-17_15-40-23.mp4
@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Sep 17, 2024
@andrewtelnov andrewtelnov self-assigned this Sep 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug user issue An issue or bug reported by users
Projects
None yet
Development

No branches or pull requests

2 participants