Question types: Drag-and-Drop Matching

Maintained by Picture of DualCube Team DualCube Team
Question type similar to the matching question type but with a drag and drop interface for the students during attempt.
2357 sites
33 fans

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.


This plugin is part of set Seeking new maintainer.


Screenshot #0


Picture of DualCube Team
DualCube Team (Lead maintainer)
Picture of Jean-Michel Védrine
Jean-Michel Védrine: Previous 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 Toulouse Michel
    Thu, 23 Jul 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, 15 Aug 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, 16 Sep 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, 17 Oct 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, 4 Nov 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, 9 Nov 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
  • Picture of Greg Padberg
    Fri, 18 Dec 2015, 3:41 AM
    Our organization has decided to move forward without using this plugin as it does not explicitly list support for Moodle 2.9 and bug fix support for Moodle 2.8 has been discontinued. We have found that this question type can often be replaced by either Matching, or Drag and drop into text, both of which are fully supported going forward.
  • Picture of Jean-Michel Védrine
    Sun, 24 Jan 2016, 9:13 PM
    I have released a new version that explicitely say it support Moodle 2.9 and Moodle 3.0.
    But in fact apart a notable change in the backup restore code there is no real change because there have been no real change in the core match question code.
    I think it's honest for me to sate that I will end my teacher career in 5 months from now and my current plan is to stop maintaining this plugin at that date. The main reason is that this plugin is just the match question with some added javascript and I am really bad at javascript so it's really hard for me to work on this plugin. If anyone would adopt it, please do so.
  • Picture of Josiah Carberry
    Tue, 15 Mar 2016, 3:41 PM
    Is version 1.6 compatible with PHP7?
  • Picture of Don Hinkelman
    Sun, 15 May 2016, 6:58 PM
    Our school is a long time user of ddmatch and we find nothing in the new 3.0 question types 'matches' it for usefulness and ease of authoring. Unfortunately, it is so easy, that almost all of our teachers make questions and often cut and paste from Word. This results in backup/restore errors. Here is an error message we are getting when this happens: Data too long for column 'answertext' at row 1. INSERT INO mdl_ddmatch_subquestions. (plus a lot more error data). In short, when you cut and paste from Word, hundreds of formatting characters come along with the simple paste of a few words. ddmatch apparently cannot handle this and backup/restore errors result. I have not noticed this happening in other question types, so I imagine there is some database setting that could be adjusted to be more forgiving when teachers paste Word text into the text boxes of ddmatch. What do you think? Is it possible to fix this, or do we just have to warn teachers never to paste from Word?
  • Picture of Dave Hyre
    Fri, 27 May 2016, 7:17 PM
    I am having trouble importing Moodle XML of this type of question WHEN it contains an mp3 file. Does anyone know what might be causing this? We are also having problems restoring a course which contains many dd matching questions to other sites. Any information about this would also be appreciated. Or, if you have time to repair the plugin. Thanks, Dave
  • Picture of Yezi Yang
    Fri, 8 Jul 2016, 1:34 PM

    I really like the drag and drop matching question type. We are using it in Moodle system in our higher education institution. Our institution use Moodle 3.1 and Moodle mobile 3.1.1. In the Moodle mobile 3.1, quizzes are integrated with the mobile app. However, the question type is not integrated with Moodle mobile app. When clicking into a quiz with the question type, it appears a warning message, "This quiz cannot be attempted in teh app because it has access rules not supported by the app: quizaccess_ddmatch".

    The developer of “gapfill" question type asked about this issue in the Moodle forum. The official Moodle mobile developer has replied the forum. Generally, some development need to be done in the question type plugin side. He also provides detailed guide in the reply:

    I really hope you can integrated the drag and drop matching question type with Moodle mobile. It will also benefit a lot for other users.
  • Picture of David Mudrák
    Mon, 13 Feb 2017, 5:12 PM

    Thanks DualCube for adopting this orphaned plugin and offering help with further maintenance.

  • Picture of Jean-Michel Védrine
    Wed, 15 Feb 2017, 3:24 PM
    A big thank to DualCube for keeping this plugin alive
  • Picture of DualCube Team
    Thu, 16 Feb 2017, 2:50 PM
    Thanks David and Jean-Michel! We look forward to getting in touch and assist the users of this excellent plugin.

    Thanks and Regards,
1 2 3 4
Please login to post comments