Question T9336
Visible to All Users

Can I get the row data in a matrix

created 3 years ago

Hi
I'd like to process a row data in a matrix after pressing the button in the same row
ButtonInMatrix.jpg
but failed for several days
is it possible ?
regards

Answers approved by surveyjs Support

created 3 years ago

Hello,
Here is the code and example:

JavaScript
survey.onGetMatrixRowActions.add((sender, options) => {     const row = options.row;     options.actions.push({         id'custom',         title'Show',         location"end",         action() => {             alert(JSON.stringify(row.value));         },     }); });

Thank you,
Andrew
SurveyJS Team

    Comments (1)

      thanx a lot