Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
I Still confuse to compulsory function in manage question, what for that stuff on it?? when i add the question from bank question sometime it fails because in view of quiz is still zero question, but when i check compulsory per question it will work well...so why we have to check compulsory..?? why dont just all question easily added without checking compulsary function....??
Comments
Comment #2
djdevinThis is about a randomized Quiz, right?
Basically it works like this:
You have a pool of questions in your Quiz, let's say
Question 1 - Compulsory
Question 2 - Compulsory
Question 3
Question 4
Question 5
Then you set up random questions to pick 1 question at random
Your quiz will always contain Question 1 and 2, but will also contain one of Question 3, 4, or 5.
You will have a total of 3 questions every time someone takes a Quiz
The system does a calculation to make sure that you selected valid options so that you always have questions.
For example if you set it to 5 random questions, and marked them all compulsory, it will give you an error because there were not enough non-compulsory (random) questions to pull from.
Let me know if that helps
Comment #3
imunk CreditAttribution: imunk commentedYups...Thanks a lot for that :) i got it
Comment #4
imunk CreditAttribution: imunk commentedIam a teacher and need to use this awesome module to final exam, One more help if you don't mind, how to make a javascript dialog confirmation when user click finish?? because it realy important !
Last week when i gave to my student for their exam, one of my student click finish button accidentally! while he not answer all the question! I hack the core to put another button finish to solve it but it was not good way,it will destroy the code in the future!
tell me how to alter that form in a right way to make a dialog confirm before submit last question ??
thanks
Comment #5
djdevinConfirmation alert was added in #2913831: Confirmation alert