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

Ranking Scale: Validation doesn't check for a specific rank item order #6644

Closed
JaneSjs opened this issue Aug 3, 2023 · 0 comments · Fixed by #6658
Closed

Ranking Scale: Validation doesn't check for a specific rank item order #6644

JaneSjs opened this issue Aug 3, 2023 · 0 comments · Fixed by #6658
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Aug 3, 2023

User issue: T14110 - ranking validation
https://surveyjs.answerdesk.io/internal/ticket/details/T14110


View Demo
Task: validate a Ranking question and ensure that items appear on a specific order.

{
 "logoPosition": "right",
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "ranking",
     "name": "question1",
     "validators": [
      {
       "type": "expression",
       "text": "Please rank items in a descending order",
       "expression": "{question1} = ['Item 3', 'Item 2', 'Item 1']"
      }
     ],
     "choices": [
      "Item 1",
      "Item 2",
      "Item 3"
     ]
    }
   ]
  }
 ],
 "widthMode": "static"
}

However, a question passes validation even though items are ranked in another order.

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Aug 3, 2023
@JaneSjs JaneSjs added this to the v1.9.102 milestone Aug 3, 2023
@dmitry-kurmanov dmitry-kurmanov removed their assignment Aug 4, 2023
@RomanTsukanov RomanTsukanov changed the title Ranking Question - Validation doesn't check for a specific rank item order Ranking Scale: Validation doesn't check for a specific rank item order Aug 9, 2023
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

Successfully merging a pull request may close this issue.

3 participants