Question T4753
Visible to All Users

Columns Gid Remove Column title, name, is Required.

created 4 years ago

Hi Team,

Need to hide column only from columns grids but not from nested form on click of edit button in matrixdynamic type question

We tried using

JavaScript
Survey.Serializer.findProperty("matrixdropdowncolumn", "isRequired").visible = false; Survey.Serializer.findProperty("matrixdropdowncolumn", "name").visible = false; Survey.Serializer.findProperty("matrixdropdowncolumn", "title").visible = false;

Using this also hide name, title, isRequired from nested form.

Let us know if there is any workaround.

.Clipboard-File-3.png.

Thanks in advance.

Regards
Vinay

Answers approved by surveyjs Support

created 4 years ago

Hello,

You can it via custom css. Here is the similar issue with more details

Thanks, Alex
SurveyJS Team

    Comments (3)

      Hello,
      Please use the following code:

      JavaScript
      SurveyCreator.SurveyQuestionEditorDefinition.definition.matrixdropdowncolumn.properties = ["cellType"];

      You will have to update css, since our current css doesn't expect to have only one column/property. There are a lot of space between "Edit" button, cellType column and "Delete" button.

      Thank you,
      Andrew
      SurveyJS Team

        Thanks Andrew it worked.

          Fine, fell free to contact us in case of any further questions