Question types: Drag and drop onto image

Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Picture of Jamie PrattJamie Pratt, Picture of Phil ButcherPhil Butcher
As of Moodle 3.0, this question type is part of the standard Moodle release. That is why there is no plugin from Moodle 3.x. You don't need one!
253 sites
82 fans
Current versions available: 6

As of Moodle 3.0, this question type is part of the standard Moodle release. That is why there is no plugin from Moodle 3.x. You don't need one!

There are working examples in eAssessment with Moodle on our OpenLearn site.

The documentation is in How to create questions in Moodle on that site.

Demonstration of this question type courtesy of Dot Garman.


This plugin is part of set Open University.


Screenshot #0


Tim at Lone Pine Koala Sanctuary
Tim Hunt (Lead maintainer)
Picture of Jamie Pratt
Jamie Pratt: Developer
Picture of Phil Butcher
Phil Butcher: Question type designer
Picture of Colin Chambers
Colin Chambers: Developer
Please login to view contributors details and/or to contact them

Comments RSS


  • Picture of Brian Gygi
    Sat, Jul 18, 2015, 7:12 AM
    Oh yes, I have a Mac....
  • Picture of Phil Butcher
    Sat, Jul 18, 2015, 6:24 PM
    These instructions are for a PC but should give you the idea. Search for Mac specific info.
  • Picture of Brian Gygi
    Mon, Jul 20, 2015, 1:42 PM
    Thanks Phil!
  • Picture of jeyda bicer
    Wed, Sep 16, 2015, 8:16 PM
    Is it possible to set the mark for this question as all or nothing? For example the user places 3 out of 5 images correctly, but 2 are incorrect, so this means they get the overall question wrong.
  • Tim at Lone Pine Koala Sanctuary
    Wed, Sep 16, 2015, 9:12 PM
    Sorry, no.
  • Picture of jeyda bicer
    Thu, Sep 17, 2015, 7:00 PM
    Thanks Tim. Are you aware of any question plug ins with similar features but offers all or nothing marks?
  • Picture of José Miguel Alayo Berrios
    Mon, Jan 25, 2016, 5:21 AM
    Great plugin. Any update for Moodle 3.0+
  • Tim at Lone Pine Koala Sanctuary
    Mon, Jan 25, 2016, 3:39 PM
    Read the Moodle 3.0 release notes! Since Moodle 3.0 these plugins are part of the standard Moodle distribution.
  • Picture of Jean-François Pochon
    Tue, Feb 16, 2016, 6:08 PM
    Very good work, thanks a lot. .... but ....
    Is there possible to decrease the size of margin around the picture (decrease until "0" if possible) ?
    We could then use that quiz type to generate timing dragram for electronic.
  • Tim at Lone Pine Koala Sanctuary
    Tue, Feb 16, 2016, 6:45 PM
    Yes, that suggestion makes sense for the type of quesiton you are thinking about.

    I wonder how important the padding is for other types of question?

    The culprit in the code is here: (and, if you change that, you would need to run the 'grunt' tool to have it take any effect.

    Note, these question types are now in Moodle core, so this question would be better in the quiz forum
  • Picture of roman angerer
    Thu, Mar 24, 2016, 12:22 AM
    Are there any requirements to use this plugin? my moodle says something about "Abhängigkeitprüfung" which might be dependencytest failed for "qtype_ddwtos"
  • Tim at Lone Pine Koala Sanctuary
    Thu, Mar 24, 2016, 1:58 AM
    As the Moodle plugin installer will tell you, this question type requires qtype_gapselect.
  • Oam
    Wed, Apr 6, 2016, 11:20 PM
    Hi Tim,

    I face a problem using this plugin and Piwik : if the Piwik server is down, the drag and drop does not work.

    Do you want me to open an issue on github ( or do you want more detais here first ?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Apr 6, 2016, 11:22 PM
    What has Piwik got to do with drag-drop questions? I suggest you report the bug to Piwik if their code is breaking your Moodle site.
  • Oam
    Thu, Apr 7, 2016, 12:19 AM
    Hi Tim,

    If Piwik server is down, the page is displayed but is still loading. And finally the "loading" stops after a while. During the "loading", the drag-drop does not work. After, it works.
    Until now, I faced this problem only with drag-drop questions that why I thought the problem could be between Piwik and this plugin.

    When I tried to reproduce the problem on another Moodle, I had the same problem with the drag and drop area on the restore course page.
    Now, I try to understand where the problem comes from : the piwik code, a JS library used by piwik and moodle, moodle code (the way the JS is loaded), ...

    I apologize for my previous comment at the wrong place, I will report the bug to piwik or moodle.

Please login to post comments