Question T6060
Visible to All Users

Query Survey for Un-Answered Questions

created 4 years ago

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. **

Answers approved by surveyjs Support

created 4 years ago

Hello,
Yes, you can. Here is the needed code/functions

JavaScript
var 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)

      Hi,

      This is exactly what I need, thank you so much…!

      Regards,

      Roshan G. Bolonna

        You are welcome!

        Andrew
        SurveyJS Team