Is it possible to create a adaptive quiz.
I would like to add triggerd actions after each question to redirect to another question depending on the given answer.

In that way I can define the route through the questions in a quiz depending on the given answers.

Thanks in advance

Wim

Comments

mbutcher’s picture

Issue tags: +adaptive quiz, +quiz routing

There have been other requests for this feature. However, it is not currently on the roadmap. It would be a welcome addition if somebody were to write this.

GN’s picture

Actually, I have found out that there is a software called Quandary (by www.halfbakedsoftware.com; currently $10 shareware, but becoming free since September 1, 2009) able to do things like that; they call it "Web-based Action Mazes." The result is exported to XHTML and can be viewed as a stand-alone web page. I don't know - maybe it could be an easier job to integrate web mazes created by Quandary into Drupal than to implement in Drupal the adaptive quiz functionality?

sivaji_ganesh_jojodae’s picture

Issue tags: +ToDo

No We would like to have our own adaptive quiz engine. I am currently working on quiz import/export feature. This is a frequently asked request adding this feature to quiz "ToDo" list.

sivaji_ganesh_jojodae’s picture

Version: 6.x-3.x-dev » 6.x-5.x-dev
Status: Active » Postponed

No time to implement this in quiz 4.x. Moving it for 5.x

michaelcrm’s picture

cmjns’s picture

I have a client who is requesting this. They are looking at Moodle, as well. But it looks like Moodle (http://docs.moodle.org/en/Adaptive_questions) does not do it either. I'd consider working on it, if my client wants it badly enough. But would anyone briefly lay out the issues involved here?

mjasonbaker’s picture

I believe I am looking for this feature as well.

I need to offer a block that says "Do you meet the requirements below?" If yes, it will direct them to another page that again asks if they meet the requirements below. If yes, then a final pages says "Congratulations, You Qualify!" and have a link or forward the user to a desired page.

If they do not meet all the requirements listed, then it would guide the user through other series of questions on different pages. When the qualifying questions are exhausted, it would say "Sorry. it looks like you do not qualify" and have a link or forward the user to a desired page.

Am I asking for the same feature?

julianmancera’s picture

Hi all,

I'm working the adaptative feature for the quiz module , here is my approach any comments will be really useful. ( Is anyone working this feature alredy?)

1. Adding a database column called next_step to the quiz_node_relationship, that will store the adaptative conditions based on the answer for the current question.

2. Modify the way that function quiz_take_quiz function handles the $_SESSION questions array variable( avoid using the array_shift), so the user can go back and forward in the quiz depending on the defined adaptative conditions. If you have any suggestion on doing this without hacking the core module will be nice.

3. Adding to multichoise questions type and true/false question type a column on edit interface to let the user select the next quiz question( the user should create all the questions before setting the adaptative conditions) for each answer.

4. Store the submitted information in the next_step column from the step number 1.

Any comment will be apprecited

Regards,

Julian

julianmancera’s picture

StatusFileSize
new15.78 KB

Good day every one,

I'm done with the adaptative quiz development, I'd like you to give it a try and let me know your comments. The beta release only includes adaptative questions of the Multichoice type.

I need you feedback on the user interface too. Special thanks to Worldwide Affinity who sponsor the development.

Regards

Julian Mancera

julianmancera’s picture

Title: adaptive quiz » adaptive quiz installation patch

Here is the patch that must be applied in the quiz.module and multichoice.module files

Any questions let me know.

--- quiz.module
+++ quiz.module
@@ -533,7 +538,7 @@ Unless you know what you are doing, it i
function quiz_view($node, $teaser = FALSE, $page = FALSE) {
drupal_alter('quiz_view', $node, $teaser, $page);
if (!$teaser && $page) {
//load the questions in the view page
//$node->content['body']['#value'] = quiz_take_quiz($node);
- $node->content['quiz'] = quiz_take_quiz($node);
+ if ($node -> adaptative)
+ $node->content['quiz'] = adaptative_quiz_take_quiz($node);
+ else
+ $node->content['quiz'] = quiz_take_quiz($node);

--- multichoice.module
+++ multichoice.module

@@ -1129,7 +1127,7 @@ Unless you know what you are doing, it i
if (user_access('allow feedback')) {
$header[] = array('data' => t('Feedback'), 'style' => 'width:250px;');
}
+ $header[] = array('data' => t('Next Step'));

@@ -1144,7 +1146,7 @@ Unless you know what you are doing, it i
if (user_access('allow feedback')) {
$row[] = drupal_render($form[$key]['feedback']);
}
+ $row[] = drupal_render($form[$key]['next_question']);

julianmancera’s picture

Assigned: Unassigned » julianmancera

Jus t assigning my self the feature request

falcon’s picture

Thank you for contributing!

I'm focusing on finishing Quiz 4 at the moment, and will have to get back to this issue later.

julianmancera’s picture

Title: adaptive quiz installation patch » adaptive quiz module final version
Issue tags: -ToDo
StatusFileSize
new17.4 KB

Hi everyone,

Attached you will find the latest version of the adaptive quiz which includes some improvements and bug fixing. The adaptive behaviour was extended to all the question types: multichoice, true-false, Directions, short answer and long answer. Any feedback is apprecited. I also removed the patches that should be included in the quiz module so now is a total independent module.

Regards,

Julian

falcon’s picture

Cool! You obviously know what you're doing!

What version of quiz has this module been written for?

If we were to include this in the Quiz project we would include it for Quiz 4.1 or something, but Quiz is already huge. Would you like to help maintain Quiz? We could then include your code in the project, but make the integration a bit smoother so that we don't have two "..._take_quiz" functions for instance.

Ideally we'll wait for Quiz 5 and let Adaptive Quiz be a separate project. We will rewrite the quiz taking logic completely in quiz 5, and make it a lot easier to create add on modules like this one.

julianmancera’s picture

Title: adaptive quiz module final version » adaptive quiz module some bug fixing
StatusFileSize
new17.54 KB

Hi Falcon,

This release was written for the quiz 3 core version. In the next couple of days I'll be working in the adaptive module for quiz version 4, I'd like to be part of the the quiz module maintainers team, so if you have any feedback before starting this task would be nice!! Let me know what I need to do to start to be part of the maintainers team.

Regarding including the code within the quiz 4.1 version let me know what I need to do.

Attached you will find my last version with an small bug fix that I found my self when implementing in a site.

My best regards,

Julian

falcon’s picture

CO maintaining:
Apply for an account here:
http://drupal.org/cvs-application/requirements

Refer to this issue and comment in your motivation message.

By accepting to become co-maintainer you're also accepting to help out with issues in the issue list. Answer some support requests, fix some bug reports and review patches.

Adaptive quiz:
Maybe you could make a suggestion on how we can make a better API in quiz allowing for Adaptive Quiz(and maybe also other modules) to work without having to replace the entire quiz_take_quiz logic?

gausarts’s picture

Subscribing. Thanks

djdevin’s picture

Subscribing, can help with a Quiz 4 version too

julianmancera’s picture

StatusFileSize
new18.96 KB

Hi all,

Attached you will find the adaptive quiz module beta for the version 4 of quiz module. I'll really appreciate your comments and testing.

Regards

Julian

zeezhao’s picture

+1

cherryz’s picture

Subscribing. Thanks

julianmancera’s picture

Title: adaptive quiz module some bug fixing » Adaptive quiz module RC - quiz 4
StatusFileSize
new19.25 KB

Hi all,

Attached you will find the adaptive quiz module for the version 4 of quiz module. I'll really appreciate your comments and testing.

Regards

Julian

jnammour’s picture

Hello,

I am testing the adaptive module in a sub-directory and If I save the Multiple Choice question with your adaptive module enabled it redirects me to a page not found and does not save the node. I believe it has to do with the url not sending me to a page within the sub-directory. Any ideas? Has anyone seen this before?

julianmancera’s picture

StatusFileSize
new24.66 KB

Hi jnammour,

No sure about the this bug. Attached you will find a new version of the module please update it and let me know if the bug persist. If it does can you give me more doc how to reproduce it?

Regards

Julian

julianmancera’s picture

Hi jnammour

Are you testing with the anonymous user?

Regards,

Julian

michaelfavia’s picture

Taking up the adaptive quiz baton myself. I just need to support skip patterns. Taking a look at your module later today if you have any recent work and dont mind posting it here or to a GIT hub we can push this boulder together julian.

bisonbleu’s picture

StatusFileSize
new43.42 KB

Hello,

I'm testing the adaptive_quiz module. I need help.

Reading this thread leads me to believe that the latest version of the adaptive_quiz module (available in #24) will work with Quiz 6.x-4.0. Am I right? If not, everything that follows goes out the window... :-)

I've installed Quiz modules (see attachment for versions) on a Fresh D6.20. Quiz works great. But I can't get adaptive_quiz to work. Actually, I'm not exaclty sure how I should go about it. More info about this below. Demo is here http://dev8.renaudjoubert.com/ (27 jan 2011)

Results/behaviour

- All questions for this quiz are of type multichoice
- for Question #1, if Multiple answers is unchecked & only one answer is checked as Correct
- or if Multiple answers is checked & all answers are checked as Correct
---> question 1 is sticky, it's not possible to move to question 2, the quiz is stuck and doesn't end.

How the quiz is structured.
1. I created all the questions.
2. Then I came back and edited the "Next Question column

- Q1 has 3 choices (all checked as correct)
--- choice 1 points to Q2
--- choice 2 points to Q3
--- choice 3 points to Q4

Q2, Q3, Q4 have 3 choices (only one checked as correct)
--- all choices point to Q5

- Q5 has 3 choices (all correct)
--- choice 1 points to Q6
--- choice 2 points to Q7
--- choice 3 points to Q8

Q6, Q7, Q8 have 3 choices (only one checked as correct)
--- all choices point to Q9

- Q9 - last question - has 3 choices (only one checked as correct)
--- choice 1 points to "Select" (or nothing)
--- choice 2 points to "Select" (or nothing)
--- choice 3 points to "Select" (or nothing)

This structure is intended for an assessment test. When I ask "How do you feel?" There is no right or wrong answer. And depending on the choice the user makes, the next question may be different. In this demo, if you answer "Good" then the next question is "How do you spell "Good" ?. And so on.

Can anyone point me in the right direction? Or tell me "You're crazy man..."

This module has a lot of potential julianmancera. Keep up the excellent work!

julianmancera’s picture

Hi Bisonbleu,

Please send me a db backup or an access to the test site db so I can check what is happening in a clean install.
My email is julianmancera@easyezpublish.com.

Regards,

Julian

julianmancera’s picture

Hi Bisonbleu,

Please send me a db backup or an access to the test site db so I can check what is happening in a clean install.
My email is julianmancera@easyezpublish.com.

Regards,

Julian

Hodgekins’s picture

Component: Code - Quiz module » Code - Import/Export

Hi Julian and Michael,

Amazing work on this module. Thanks for developing it!

I was just wondering if there are any plans to port this functionality to D7? I had a look at doing it but I'm way out of my depth.

Cheers,

Ben

Hodgekins’s picture

Component: Code - Import/Export » Code - other

Accidentally changed

julianmancera’s picture

Hi Ben,

No plans for porting to drupal 7 yet. The module itself needs a redo.

Regards,

Julian Mancera

djdevin’s picture

Component: Code - other » Code - Quiz core
Issue summary: View changes
Status: Postponed » Closed (outdated)

This issue is being closed because it was filed against a version that is no longer supported. If the issue still persists in the latest version of Quiz, please open a new issue.