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

Multi-Select Matrix: Column values cannot be validated against other survey questions #6449

Closed
JaneSjs opened this issue Jun 28, 2023 · 1 comment
Assignees
Labels
bug user issue An issue or bug reported by users
Milestone

Comments

@JaneSjs
Copy link
Contributor

JaneSjs commented Jun 28, 2023

User Issue: T13686 - LOGIC help
https://surveyjs.answerdesk.io/internal/ticket/details/T13686


View Demo

Issue: the matrix column validator doesn't work as expected.

const json ={
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "text",
     "name": "age"
    },
    {
     "type": "text",
     "name": "question3",
     "validators": [
      {
       "type": "expression",
       "text": "Should be less than Age",
       "expression": "{question3} < {age}"
      }
     ]
    },
    {
     "type": "matrixdropdown",
     "name": "question2",
     "columns": [
      {
       "name": "Column1",
       "cellType": "text",
       "validators": [
        {
         "type": "expression",
         "expression": "{question2.Row1.Column1} < {age}"
        }
       ]
      }
     ],
     "choices": [
      1,
      2,
      3,
      4,
      5
     ],
     "rows": [
      "Row1"
     ]
    }
   ]
  }
 ]
}

A validation error shouldn't appear:
image

@JaneSjs JaneSjs added bug user issue An issue or bug reported by users labels Jun 28, 2023
@JaneSjs
Copy link
Contributor Author

JaneSjs commented Jun 28, 2023

Note: the {row.ColumnName} syntax doesn't work either.
View Demo

@andrewtelnov andrewtelnov added this to the v1.9.96 milestone Jun 29, 2023
@RomanTsukanov RomanTsukanov changed the title Matrix Dropdown - Cannot validate a column values using another survey question Multi-Select Matrix: Column values cannot be validated against other survey questions Jul 4, 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

No branches or pull requests

2 participants