Question T8976
Visible to All Users

Find category name from question

created 3 years ago

Hello,
Is there a way to find which toolbox category a question belongs to from a question.
For example, we can fine question type like this, question.getType() .

Answers approved by surveyjs Support

created 3 years ago

Hello,

You can use

JavaScript
const categoryTitle = creator.toolbox.getItemByName(question.getType()).category;

Thank you,
Alex
SurveyJS Team

    Comments (1)

      Thanks Alex!!