For a new project, I have created a new question type. A clone of the essay question. I would like to add a dummy text (ie: Not answered by student.) in the response summary text area when the student leave the field blank and go to the next question.
The goal of this is that the question would have a status “Incomplete” instead of “Not yet answered” in the quiz summary. I know it make sense to have an Not yet answered status but it doesn’t work with our qtype.
Does anyone know where in the code the answers are saved in the essay question? I looked in the following places but could find anywhere to add a condition to inject the dummy text if the response summary is blank.
question/type/essay/question.php question/type/essay/questiontype.php question/type/questionbase.php question/type/questiontypebase.php
We are running Moodle 3.9.9.
Thank you in advance for your help