Hi Team,
-
I want to rename all occurrences of "survey" to "quiz". Is there any property that I can use?
-
I have been able to set custom survey title and description placeholders in the property grid by using below code:
Codeconst placeHolderTexts = {
survey: {
title: "Please type quiz title",
description: "Please type quiz description"
},
page: {
title: "Please type page title",
description: "Please type page description"
},
question: {
title: "Please type question title",
description: "Please type question description"
},
}
creator.onPropertyEditorCreated.add((_, options) => {
const type = options.obj.isQuestion ? "question" : options.obj.getType();
const placeHolderObj = placeHolderTexts[type];
if (!placeHolderObj || !placeHolderObj[options.property.name]) return;
options.editor.placeHolder = placeHolderObj[options.property.name];
});
Is there any similar way to set custom placeholder in the survey title on designer?
Thanks,
Shalaka