Question T15354
Visible to All Users

Display column names on the 'Choices' list

created a year ago

Hello,
Is it possible to display column names on the 'Choices' list ?

Clipboard-File-1.png

Comments (2)

    Hello Mohamed,
    Do you wish to display the value and text column names for this Choices editor?

      Yes.

      Answers approved by surveyjs Support

      created a year ago (modified a year ago)

      Hello Mohamed,
      Thank you for the update. You may know that a Property Panel is built on top of a survey instance. Property editors are regular (but customized) survey questions. In its turn, the Choices collection editor is a Dynamic Matrix question. Therefore, to display column names, you need to enable the QuestionMatrixDynamicModel.showHeader option.

      You can access this editor within the creator.onPropertyEditorCreated event.

      JavaScript
      creator.onPropertyEditorCreated.add((sender, options) => { if (options.property.name === "choices") { options.editor.showHeader = true; } });

      The choices editor now appears as follows:
      Clipboard-File-1.png

      Please let me know if you have any further questions.

      P.S. We hope you enjoyed the level of service you received. If so, we would love if you could leave your feedback on SurveyJS page at g2.com. As we’re building our business, every review helps build credibility for future customers and your feedback would be greatly appreciated.