Your Moodle version

Question types: Drag-and-Drop Matching

Maintained by Picture of Jean-Michel Védrine Jean-Michel Védrine
Question type similar to the matching question type but with a drag and drop interface for the students during attempt.

Created by Adriane Boyd during 2007 Google Summer Of Code, the drag and drop matching question type is quite similar to the matching question type found in standard Moodle, differences are:

  • during question creation/edition of drag and drop matching questions, an editor is available for each answer (in standard matching question this is not possible because these elements are displayed inside a select menu during question attempts)
  • during question attempts a drag and drop interface is displayed and the student must drag each right element on the correct spot on the left.


Picture of Jean-Michel Védrine
Jean-Michel Védrine (Lead maintainer)
Picture of Adriane Boyd
Adriane Boyd: Original author
Picture of Andrew Nicols
Andrew Nicols: Javascript upgrade to YUI3
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of David Dunn
    Wed, Nov 19, 2014, 11:13 PM
    Hi Sarah,
    It sounds similar to my problem. See Jean-Michel's advice above (18 Nov 2014, 5:06 PM), but looking for a Missing from disk error by qtype_gapfill.
  • Picture of Jean-Michel Védrine
    Wed, Nov 19, 2014, 11:46 PM
    Hello Sarah,
    I don't think David is right because "Drag and drop question type" (qtype_ddmatch) is only dependant on "Matching question type" (qtype_match) and is not dependant at all on qtype_gapfill.
    So surely this error message is caused by something else than the "Drag and drop matching question".
    Maybe you have installed another question type than is dependant on qtype_gapfill ?
    Go to Site Administration -> Plugins -> Plugins overview
    Scroll to question types section and look at what question types are dependant on qtype_gapfill and what question types are missing.
  • Picture of shiva k
    Wed, Dec 17, 2014, 3:43 PM
    By the way how to disable this qtype? All my imports for matching type are mistakenly imported as ddmatch which i dont want. Could you please tell me? hiding the plugin is not helping...
  • Picture of dan eagles
    Tue, Jan 20, 2015, 2:59 PM
    Hello Jean-Michel!
    Does this question type supports input from devices with touch-screen (i.e. smartphones)?
    Does it supports export & import of questions with images in body and answers in Moodle XML format?
    Sorry for asking here, I couldn't find this information in documentation or discussion thread.
  • Picture of Jean-Michel Védrine
    Sat, Feb 7, 2015, 12:42 AM
    Hello dan,
    Yes images are supported na dcontrary to core matching questions they are supported both in stems (left) and in choices (right). All images are exported and imported correctly using Moodle XML format. For touchscreen devices, I don't know, it would be good somebody test and report.
  • Picture of Scott Andre
    Sun, May 3, 2015, 4:49 AM
    Hello Jean-Michel,
    My company is interested in finding someone who would be willing to develop a version of drag and drop as well as matching that offers all-or-nothing grading. We wish to avoid partial grading and from what I gather this is currently not an option with any of the drag and drop or matching question types. We are certainly willing to compensate the developer for their time and in turn would hope the developer would share this with the Moodle community. Do you know how or who I should reach out to for this? Certainly if you are available I would love to discuss further.
  • Picture of dan eagles
    Thu, May 21, 2015, 2:50 PM
    Hello Jean-Michel!
    I've actually tried this qtype on a tablet - it works more or less: you just "drag" the right choice to the "Drag answer here" box.
    However, when you have a lot of stems and/or choices, and/or you have a lot of text/pictures in choices and stems, the boxes grow big (and so all stems and choices just can't fit to the screen). So you have to scroll WHEN you're dragging the choice - which might be impossible on some devices (well, it was impossible on that low-budget tablet my co-worker lent me: whenever I tried to scroll, the "focus" just "dropped" from the choice currently being dragged. Haven't tested on other devices yet - I'll have to try with a "proper" device with Multitouch, I think).
    Well, thought it might be worth sharing this here.
  • Picture of Przemyslaw Stencel
    Sun, Jun 7, 2015, 4:43 AM
    Will theis plugin be available for moodle 2.9 some time soon? smile I'm planning my upgrades and it would be great to know when I can expect it.
  • Matt Bury
    Sat, Jun 13, 2015, 8:04 AM

    Thanks for the great plugin. i installed it on Moodle 2.9 and so far it works fine.

    I came across one bug: If the answer text of the subquestions is longer than 255 characters it throws an error. I changed the DB table qtype_ddmatch_subquestions answertext column to and it seems to work fine. It also allows longer answers smile

    BTW, in a few questions, the sub-questions are dates and the sub-answers are descriptions of events, some of which are longer than 255 characters. It works great with the modification above.

    I hope this helps smile
  • Picture of Toulouse Michel
    Thu, Jul 23, 2015, 2:08 AM
    Hello, I have the following error message when the content of the label exceeds 640 characters : "erreur écriture base de données ." Thanks for your answer. Michel
  • Picture of Toan Tran
    Sat, Aug 15, 2015, 2:39 PM
    Hi author,

    I am wondering whether the plugin can support to grade for each correct answer drag in a question.
    For example, I create a quiz with a question in matching drag & drop type. There are 5 sub question in the left side, and there are 8 shuffle answer in the right side. The total mark of this question is 5, student can get the mark his own that equal the correct dragged for each sub question.

    At the present, if I set the mark of question is 5, and student get 5 if he drag correctly total 5 sub questions, and he get 0 if he drag at least one incorrect sub question.

    Thanks and all the best!
  • Picture of jeyda bicer
    Wed, Sep 16, 2015, 8:19 PM
    Is it possible to set the mark for this question as all or nothing? For example the user matches 3 out of 5 words correctly, but 2 are incorrect, so this means they get the overall question wrong.
  • Pedro Crispim
    Sat, Oct 17, 2015, 7:05 AM
    Hi, Jean-Michel.
    Sorry for asking your help, but I am having some problems with DDMatch in Moodle 2.9.x.
    I get the following message when trying to import course content to another course.
    Using Moodle 2.9.2+ (Build: 20150924)
    DDMatch version - 2014110900

    Can you please give any hint on what might be the problem? Thank you so much
  • Picture of Greg Padberg
    Wed, Nov 4, 2015, 6:43 AM
    Are there plans for this plugin to explicitly support Moodle 2.9 and up? As bug fixes for general core bugs in Moodle 2.8 will be discontinuing in less than a week, we may soon be facing the choice of either staying behind (not advised), or possibly moving forward without using this plugin.
  • Picture of Peter Pany
    Mon, Nov 9, 2015, 5:55 AM
    I just want to say that I use this question-type very often in my lessns and I was very astonished as Idid not find the question-Type after an Update.I would also appreciate very much a Version of this PlugIn explicitely for Versions 2.9 and up, because at the moment I cannot use a huge amount of my questions in the upgraded Version of our moodle. When is an upgraded Version planned for?
    Many Thanks
1 2 3 4
Please login to post comments