Question T14164
Visible to All Users

Is it possible to display the title of question instead of name

created a year ago

Hi,

Is it possible to display the title of a question everywhere in the Survey JS wherever question reference is needed. Like Conditions, Expressions, Triggers? The expression value behind the scene will remain the question name only but in the dropdown to display purpose it should show the Title of question.

Clipboard-File-1.png

Thanks,
Santosh

Answers approved by surveyjs Support

created a year ago

Hi Santosh,
To display question titles in Conditions, Expressions, enable the creator.showTitlesInExpressions option.

JavaScript
const options = { showLogicTab: true, showTitlesInExpressions: true }; const creator = new SurveyCreator(options);

Now, questions titles appear in a question list.

The Logic Tab:
Clipboard-File-1.png

The Triggers property grid section:
Clipboard-File-2.png

Additionally, you can enable the showObjectTitles option to display survey element titles in an element selector popup within a Property Grid:

JavaScript
const options = { showLogicTab: true, showTitlesInExpressions: true, showObjectTitles: true }; const creator = new SurveyCreator(options);

Clipboard-File-3.png

Please let me know if you have additional questions.