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

visibleIf doesn't work for rateValues #9267

Open
andrewtelnov opened this issue Jan 6, 2025 · 0 comments
Open

visibleIf doesn't work for rateValues #9267

andrewtelnov opened this issue Jan 6, 2025 · 0 comments
Assignees
Labels
bug user issue An issue or bug reported by users

Comments

@andrewtelnov
Copy link
Member

The following JSON doesn't work correctly:

{
  "pages": [
    {
      "name": "page1",
      "elements": [
        {
          "type": "rating",
          "name": "question1"
        },
        {
          "type": "rating",
          "name": "question2",
          "autoGenerate": false,
          "rateValues": [
            {
              "value": 1,
              "visibleIf": "{question1} < 2"
            },
            {
              "value": 2,
              "visibleIf": "{question1} < 3"
            },
            {
              "value": 3,
              "visibleIf": "{question1} < 4"
            },
           {
              "value": 4,
              "visibleIf": "{question1} < 5"
            },
            5
          ]
        }
      ]
    }
  ]
}
@andrewtelnov andrewtelnov added bug user issue An issue or bug reported by users labels Jan 6, 2025
andrewtelnov added a commit that referenced this issue Jan 20, 2025
tsv2013 pushed a commit that referenced this issue Jan 20, 2025
…eIf #9267 (#9337)

* Calcuate renderedRateValues prop on demand #9267

* Try to fix vue3 visual test

* Support rate value visibleIf #9267
andrewtelnov added a commit that referenced this issue Jan 20, 2025
…eIf #9267 (#9337)

* Calcuate renderedRateValues prop on demand #9267

* Try to fix vue3 visual test

* Support rate value visibleIf #9267
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