Hi Team,
I need to get question numbers for each question in survey creator, I checked creator.survey but cannot find any function/property to get question numbers, can you please guide us on the same!
Hi Team,
I need to get question numbers for each question in survey creator, I checked creator.survey but cannot find any function/property to get question numbers, can you please guide us on the same!
Hello Santosh,
A question number can be accessed via the question.no property. Please note that question numbers are available if numbers are enabled for questions. For instance, the following code loops through survey questions and prints question numbers to a console:
JavaScriptcreator.survey.getAllQuestions().forEach((q) => {
console.log(q.no);
});
Please let me know if this information helps.