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.
Where the chosen answer of user is save during session the quiz..?
Quiz progress module use table quiz_node_results_answers in mysql to implement their module which is have answer_id,is_correct,is_doubtful,is_skipped etc but not available for the answer chosen option..
so where the exact table in mysql to know during the session of quiz the user chose A,B or C option in every question...??
we only know it when the user done their quiz in result views, i really want to create contrib module for it but still confused..!:(
Cheers..!
here is the screenshot :)
Comment | File | Size | Author |
---|---|---|---|
#4 | unbk.png | 90.85 KB | imunklovarian |
Comments
Comment #2
djdevinEach question module stores its own answers. We don't know what the answer data will look like, so we let the questions decide.
The base question response entity "quiz_result_answer" (which is the quiz_node_results_answers table in the database) stores the base fields for the question that are required - things like correctness, skipped, points, etc.
But for example a short answer question stores text in an additional table while a multiple choice question stores selected options. Short answer only has 1 table, but multiple choice needs 3 tables to handle all the options for answer storage.
So if you were to build your own custom question module, you would provide the storage for your answers.
Hope that helps
Comment #3
imunklovarian CreditAttribution: imunklovarian commentedDone..! i have created a custom module to store option answer in that is chosen by user in quiz progress so the user will know what they have chosen A,B or C in every question by seeing the quiz progress list here the screenshot
http://i67.tinypic.com/34rg0mq.png
thanks a lot dude..!
Comment #4
imunklovarian CreditAttribution: imunklovarian commentedComment #5
steinmb CreditAttribution: steinmb as a volunteer commented