Question T19505
Visible to All Users

Carry forward from matrix questions

created 4 months ago (modified 4 months ago)

Hi there

I am wanting to carry forward the row description from a single select matrix Screenshot 2024-08-23 at 2.58.24 PM.png
but cannot find any way to do so - what options are there to pick up the details of which rows a respondent has selected a given column and list those in a subsequent question?

Thanks

Answers approved by surveyjs Support

created 4 months ago

Hello Mark,
Use the valueName property to copy selected matrix rows to another single-select matrix. Consider the following demo:

JSON
{ "pages": [ { "name": "page1", "elements": [ { "type": "matrix", "name": "question1", "title": "Select Items", "columns": [ "Column 1", "Column 2", "Column 3" ], "rows": [ "Row 1", "Row 2", "Row 3", "Row 4", "Row 5" ] }, { "type": "matrix", "name": "question2", "title": "Items Selected in Question 1", "valueName": "question1", "readOnly": true, "columns": [ "Column 1", "Column 2", "Column 3" ], "rows": [ { "value": "Row 1", "visibleIf": "{question1.Row 1} notempty" }, { "value": "Row 2", "visibleIf": "{question1.Row 2} notempty" }, { "value": "Row 3", "visibleIf": "{question1.Row 3} notempty" }, { "value": "Row 4", "visibleIf": "{question1.Row 4} notempty" }, { "value": "Row 5", "visibleIf": "{question1.Row 5} notempty" } ] } ] } ] }

Clipboard-File-1.png

I recommend that you refer to the following demo for more information on how to use the valueName setting in SurveyJS Forms: Merge Question Values.

Should you have further questions, please let us know.

Thanks