surveyjs / survey-library

Free JavaScript form builder library with integration for React, Angular, Vue, jQuery, and Knockout.
https://surveyjs.io/form-library
MIT License
4.13k stars 804 forks source link

Multi-Select Matrix: A column's "Visible" checkbox is selected in Property Grid despite being set to `false` in the survey JSON schema #8246

Closed JaneSjs closed 5 months ago

JaneSjs commented 5 months ago

T18053 - Dynamic Matrix Column Visibility properties are not patching correctly https://surveyjs.answerdesk.io/internal/ticket/details/T18053


The first column's visible option is disabled. Consider the following JSON:

{
 "pages": [
  {
   "name": "page1",
   "elements": [
    {
     "type": "matrixdropdown",
     "name": "question1",
     "columns": [
      {
       "name": "Column 1",
       "visible": false
      },
      {
       "name": "Column 2"
      },
      {
       "name": "Column 3"
      }
     ],
     "choices": [
      1,
      2,
      3,
      4,
      5
     ],
     "rows": [
      "Row 1",
      "Row 2"
     ]
    }
   ],
   "title": "page 1"
  }
 ]
}

View Demo However, the Visible option is checked in a property grid: image