We have posted 7 questions in using a quiz module (type: essay) out of which students should attend only 5. So is there a way when a student has attended any 5 questions, the other 2 should be restricted. Please help us! Thanks! @TimHunt
How did you handle this in paper exams? Did you have answer books that automatically locked themselves after students had written answers to 5 questions? (I bet they had those at Hogwarts!) Or, what if the students just makes some notes in the answer box on Q6, but then decides they don't really want to answer that one, they want to write a proper answer to Q6?
I found your approach above very useful, Many thanks for it.
Please you can help describe or instruction on how you apply this solution to a quiz plugin or multiple quizzes. Because if I have many quizzes, Do I need to edit the XML one by one? I will appreciate your kind response.
I improved the code. It could be further improved to facilitate the necessary modifications to allow different numbers of selected topics / available topics.
Anyway, all you need to do is insert the code into the question text HTML code of the multiple choice question with which students can select their essay topics. I put comments in the code to make the changes simple.
Many thanks once again.
Many thanks for the solution. I realize that the Question Behavior under the quiz setting has to be set at "Adaptive mode" for the button to display. It's now working as per your implementation. Thank you.
But I will appreciate if you can share the .mbz file for the course.
The workaround method is now fully automated and fairly easy to use. I also added more explanations including the quiz settings, etc. (At this time, I do not distribute the .mbz files.)
You made it much easier than it was before. Thank you.
Please is there suppose to be different in MOODLE version? I'm using 3.8.2 and I have implemented it exactly the way you describe but when I select the topics it always returns wrong topics instead of the selected ones. e.g: when I select topic 1,2,3 it returns Topic 2,3,4 and 5. Please could you help me clarify?
I just tried it on Moodle 3.9 and it works fine. I think it should work on 3.8.2.
- how many choices there are in the multiple choice question (it must equal the number of topics available ),
- the values of n (number of topics to select) and m (number of available topics),
- the number of essay questions in the quiz (it must be equal to the number of topics).
Also make sure that when you preview a quiz, always click on "Start a new preview", but here, as the navigation block is hidden, you must first click on "Finish attempt...", then on "Start a new preview".
All of the parameters are correct. I import your MCQ question directly into a new quiz and create the five essay questions but still, it's not returning correct values when I choose number of topics. please Any more suggestions on why it's not working?
Thank you for all your support. I have upgraded my MOODLE version to 3.9. However, I realize the problem is caused by my present theme installed (academi). When I change the theme the scripts run as expected but when I enable it, it returns wrong topics. Any suggestion on how to pix that?
I just tried with the Academi theme and it works great. The "choose essay topics" script is pretty straightforward, it should work fine on most platforms.
I have just made a fresh MOODLE installation on my server and tried the "choose essay topics" scripts, it worked perfectly. But Once I installed "academi" theme on it the scripts stop working and returning wrong essay number on button click. Can you help share with me the version of academi you installed and got it to work?
I used V3.9 stable.
I ran the script on a Moodle 3.7 install with Boost and Academi themes and on a Moodle 3.9 install with Boost theme. I used the latest release of Academi, i.e. v3.9 for Moodle 3.9, currently available on the Moodle plugins site.
Again, the script is very simple and therefore should work regardless of the theme. I don't know what is causing the problem. Have you tried clearing the Moodle caches? (Site administration / Development / Purge caches). Have you tried clearing the browser cache?
In fact, I think I know where the problem is coming from.
There are different ways to load a script, which changes when it fires versus when the page loads, and therefore can affect how it works. These different ways may be interpreted differently from browser to browser, which makes using client-side a bit tricky. It would probably be better if the script was on the side for better control and proper functioning.
Thank you for your continuous support.
Thank you once again for a great job.
I have tried it, the delay is working but still, I couldn't get it to work effectively. It's returning the wrong topics still. I hope I can get more suggestion.