Is it possible to query un-answered questions and list down the un-answered questions to a list box so user can later answer those questions by **clicking on un-answered questions. **
Query Survey for Un-Answered Questions
Answers approved by surveyjs Support
Hello,
Yes, you can. Here is the needed code/functions
JavaScriptvar questions = survey.getAllQuestions();
for(var i = 0; i < questions.length; i ++) {
if(questions[i].isVisible && questions[i].isEmpty()) {
//add the question into your list, question has name and title property that you can use
}
}
JavaScript//Focus a question in the survey, change the current survey page if needed
survey.focusQuestion("questionName");
Thank you,
Andrew
SurveyJS Team
Comments
(2)