Issue T10358
Visible to All Users

rowCount issue in DynamicMatrix when using expressions in columns

created 2 years ago
JSON
{ "logoPosition": "right", "pages": [ { "name": "page1", "elements": [ { "type": "paneldynamic", "name": "question", "templateElements": [ { "type": "panel", "name": "panel1", "elements": [ { "type": "dropdown", "name": "question1", "choicesMin": 1, "choicesMax": 5 }, { "type": "matrixdynamic", "name": "question2", "bindings": { "rowCount": "question1" }, "columns": [ { "name": "Column 1", "cellType": "expression", "expression": "'Row ' + {rowIndex}" }, { "name": "Column 2" }, { "name": "Column 3" } ], "choices": [ 1, 2, 3, 4, 5 ], "allowAddRows": false, "allowRemoveRows": false, "rowCount": 0 } ] }, { "type": "checkbox", "name": "question3", "choices": [ "item1", "item2", "item3" ] } ], "allowAddPanel": false, "allowRemovePanel": false, "panelCount": 1 }, { "type": "panel", "name": "panel2" } ] } ] }

In the above example rowcount of matrix inside a dynamic panel changes automatically.
Steps to reproduce the issue.

  1. select '1' as answer for question1
  2. select '2' or '3' as answer for question1
  3. select any checkbox for question3
    issue : the rowcount value and value for question1 changes to '1' automatically.

The above issue happens when using expression as celltype.

Could you please help identify the issue and possibly provide a fix for it?

Comments (1)

    Hello Yureka,
    Thank you for reporting this issue. I forwarded it to our developers for further research: https://github.com/surveyjs/survey-library/issues/4719.

    We'll update this thread once we have any news to share.

    Thank you,
    Jane
    SurveyJS Team

    Answers

    created 2 years ago

    Hello,
    The issue is fixed in v1.9.46 that we will release next week. Here is the related issue on GitHub.

    Thank you,
    Andrew
    SurveyJS Team