Question Set - Save Content State
Submitted by user2352352 on Thu, 07/06/2017 - 21:19
Forums:
When resuming a question set that's been finished, the user is returned to the last question. They should be returned to the results page.
This bug occurs in Wordpress with H5P.QuestionSet-1.10
Steps to reproduce:
- Create and save a question set.
- Turn on Save Content State.
- Answer all questions and finish the question set.
- When the results page appears, leave the question set.
- Resume the question set. You will be returned to the last question.
- The user should be returned to the results page, just like in course presentation.
Thank you.
BV52
Fri, 07/07/2017 - 07:46
Permalink
Hi user2352352,This is not a
Hi user2352352,
This is not a "bug" but actually by design. I think this is so that the user can at least review his/her answers.
-BV52
user2352352
Fri, 07/07/2017 - 12:51
Permalink
It's definitely a bug, or at least a design flaw.
I would argue that this definitely is a bug, or at least a design flaw for two reasons. The most important reason is:
falcon
Fri, 07/07/2017 - 16:51
Permalink
I'm sorry to hear that you're
I'm sorry to hear that you're having trouble with this feature and I can fully understand your frustration and confusion.
The save user state doesn't save everything yet. It saves the user's answer for most content types, it saves the "page" the user is on for Question Set and Course Presentation (iirc) and what time the user is on for Interactive Video. In Course Presentation the summary isn't a page the same way it is in Course Presentation unfortunately.
We plan to expand what save user state saves for many content types, but it haven't been done yet, and there are lots of things we could save. The things you mention are among the most important things coming up. The original save feature was funded, but we only got funding to save the things mentioned above.
user2352352
Wed, 07/12/2017 - 14:20
Permalink
The fix for question set
For anyone who stumbles upon this thread looking for a temporary hack for question set when Save Content State is turned on, here it is:
Edit questionset.js
Line 708
This simply resets the user's content state in the data field of the h5p_contents_user_data table when the user clicks the Finish button. Upon resuming the question set, the user is returned to the first question with all questions cleared.
I can guarantee there's a much better way to implement this and I'm sure, at some point, the fine people at h5p will fix question set the right way. This is just a quick and dirty hack that works and makes question set function properly when Save Content State is turned on.