I’m facing an issue with quiz submissions in the Frappe LMS (v15), specifically related to how attempted questions are tracked on submission.
Problem Description
While attempting a quiz:
-
The answer is entered in the input field
-
The UI correctly validates and shows the answer as “Correct”
-
However, upon clicking Submit, the confirmation modal shows:
-
Attempted Questions: 0
-
**Unattempted Questions: 1
**
-
Technical Observation
This appears to be a frontend state management issue, where:
-
The answer validation logic is working correctly (UI feedback is shown)
-
But the quiz submission state (
answersorresponses) is not being updated
Possibly:
-
onChange/handleAnswerChangeis not persisting data into the submission object -
Attempted questions count is derived from an empty or unchanged state
Technical Observation
This appears to be a frontend state management issue, where:
The answer validation logic is working correctly (UI feedback is shown)
But the quiz submission state (answers or responses) is not being updated
Possibly:
onChange / handleAnswerChange is not persisting data into the submission object
Attempted questions count is derived from an empty or unchanged state
