Your Moodle version

Question types: Drag and drop onto image

Maintained by Tim at Lone Pine Koala Sanctuary Tim Hunt, Picture of Jamie Pratt Jamie Pratt, Picture of Phil Butcher Phil Butcher
You can use text and / or images as drag items onto defined drop zones on a background image.

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

Show comments
  • 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.

  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 7, 2016, 12:59 AM
    No worries. Thank you for taking the effort to report a problem you found. Sometimes it takes a while to work out where it needs to be reported.
  • Picture of Javier Varas
    Thu, Apr 21, 2016, 5:57 PM
    Hi Tim. Thanks for your great plugin, my students love it!
    I have Moodle 2.9.1 and we cannot drag and drop the items well when we use Android 4.4 or 5.0 tablets.
    Do you know if upgrading to Moodle 3.0.1 will solve the issue?
  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 21, 2016, 6:14 PM
    I am not certain. You can test Moodle 3.0.x on
  • Picture of Javier Varas
    Fri, Apr 22, 2016, 7:30 PM
    Hi Tim
    I've just run an experiment on the demo site (3.0.3) and it does work quite well using Firefox. Sometimes it does weird things but it is possible to do drag and drop. However, it does not work with Chrome. As soon as you start dragging the screen scrolls up (as in Moodle 2.9.x both with Firefox and Chrome).
    So I think it is time to update my Moodle to 3.0.3 smile
    Thanks for your help

1 2 3 4 5 6 7 8 9
Please login to post comments