Question T19500
Visible to All Users

Response of dynamic matrix with default configuration leaving blank object

created 5 months ago

Hi Team,

We have came across one issue after upgrading to Survey JS version 1.11.6 from 1.9.125.

We have configured a dynamic matrix in our survey & providing response to only first row of the dynamic matrix. After completing the survey it is leaving out a blank object for the second row which does not have any response. Please refer below screenshot,

Clipboard-File-1.png

I have also prepared a demo on plunker link below,

Plunker - NPS Survey Question (plnkr.co)

We are facing issues due to this on the server side since we are processing this response data for some other features in our application.

Thanks,
Ramkumar More

Answers approved by surveyjs Support

created 5 months ago

Hi Ram,
I created a demo using v1.9.125 and confirmed that an empty matrix row is also saved to a survey response object: View Demo (v1.9.125).
Clipboard-File-1.png

If you wish to remove an empty row object, subscribe to survey completion and programmatically remove an unnecessary empty object: Modify Survey Results.

Drop me a line if you have additional questions.

    Comments (2)

      Hi Jane,

      Thanks for the information. Actually i did not tried to reproduce this issue in old v1.9.125 but we did not faced this issue earlier while processing the survey response data.

      Handling it from the survey completion would be more trickier when there are nested questions. We will handle it from the processing services itself.

      Thanks!!

        No problem. Please feel free to contact us if you have more questions.