I am able to log survey.getQuestionByName('opSystem').description or title or isRequired
but how can I access the popupDescription custom property?
How to find custom property
Show previous comments
(0)
Comments
(0)
Sign in to comment on this post
Answers approved by surveyjs Support
Hello,
For JavaScript you can just write:
JavaScriptsurvey.getQuestionByName('opSystem').popupDescription
For TypeScript you may need to access property by name in a string:
TypeScriptsurvey.getQuestionByName('opSystem')["popupDescription"]
Thank you,
Alex
SurveyJS Team
Show previous comments
(1)
AN
2 years ago
Hello,
Have you defined your custom property in question class?
JavaScript// add a property to the base question class and as result to all questions
Survey.Serializer.addProperty("question", {
name: "popupDescription:text",
default: "",
category: "general"
});
Thank you,
Alex
SurveyJS Team