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 Jamie Pratt
    Sun, Oct 21, 2012, 2:40 PM
    Hi, Actually you can change the max image size for this question type, both the max image size of the background and draggable images can be changed by changing the constants that can be found here :

    at the top of questiontype.php.

  • Picture of Steve Bond
    Fri, Nov 23, 2012, 9:40 PM
    Hi, liking this plugin so far. What is the "text" field for on the far right of the "Drop zones" section? I've tried typing values into this but it seems to do nothing. I thought it might but a label into the drop zone but no.
  • Picture of Phil Butcher
    Thu, Nov 29, 2012, 1:09 AM
    The 'text' field provides a tool-tip like label for the drop area, but does not write it into the area. Try adding some text then hovering over the area. It's there to enable accessibility to be increased.
  • Picture of Juan Coronado
    Mon, Jan 28, 2013, 7:35 AM
    Some plugins, including this plugin, are not working properly under moodle 2.4. When will you provide updates for moodle 2.4? thank you
  • Tim at Lone Pine Koala Sanctuary
    Mon, Jan 28, 2013, 5:40 PM
    Juan, things will be fixed once we know exactly what is broken, and have then fixed those things.

    If you want to help, please tell us the specific things that you have found that are broken. (The best way to do this is to create a bug report in the Moodle tracker.)

    The very latest that updates for 2.4 will be available is by the end of April, since that is when the OU needs them. However, I would hope that it is much sooner than that. It will happen sooner if people help.
  • Picture of Juan Coronado
    Wed, Jan 30, 2013, 3:55 AM
    I will provide a bug report on Moodle Tracker. Thank you.
  • Just wondering . . .
    Fri, Feb 1, 2013, 4:41 AM
    Tim/Juan. I can't find the tracker items.
    And: over here: I asked about the drag and drop onto text and Jamie said it was OK.
    Have you tried this type of question Juan?
    I got one of our servers upgraded yesterday and everything so far has turned to custard where quizzes are concerned. (I'm now just looking to see if I can get some more technically correct descriptions with debugging)

    Is there a difference between the three OU DnD question types? ie is it possible one works and another doesn't on upgrade to 2.4?
  • Tim at Lone Pine Koala Sanctuary
    Fri, Feb 1, 2013, 5:03 AM
    Yes it is possible, but it is unlikely because the code is similar.

    You will be pleased to hear that the OU development code-base will be upgraded to Moodle 2.4 next week, at which point these problems will be affecting me, and I will have to fix them.
  • Just wondering . . .
    Fri, Feb 1, 2013, 5:24 AM
    Wow. Tim, that has made my day. I have some people/course complications I will not bore you with.
    This is great. I know it is late where you are!!
  • Picture of Michael Rodgers
    Fri, Feb 8, 2013, 8:03 PM
    I am trying to install this on version 2.2.6+ but it says a per-requisite is that gap select needs installing from however this says it is only compatible with version 2.1+. I have tried installing both but moodle reports a plugin requirements problem error message. I can only assume it is due to 'moodle-qtype_gapselect' not being Moodle 2.2 compatible but the why say that drag and drop works on 2.2 and 2.3 if it relies on gap select which doesn't? Alternatively is there something I have missed in the readme / instructions please?
  • Tim at Lone Pine Koala Sanctuary
    Fri, Feb 8, 2013, 8:52 PM
    2.2.6+ > 2.1, so gapselect works fine in 2.2.6+ (and, indeed, 2.3 and 2.4). Just make sure you download the right branch.
  • Picture of philippe dutour
    Sun, Mar 10, 2013, 4:33 AM
    Is it possible to make the background transparent text and images dragables.
    Is there such a test chart with arrows to reach the labels and areas of an image ...
    Thank you for your attention.
  • Picture of Jamie Pratt
    Sun, Mar 10, 2013, 1:00 PM
    @Philippe, You are going to need to explain again what you want the question type to do for you.
  • Picture of philippe dutour
    Sun, Mar 10, 2013, 10:04 PM
    Thank you for your return. I'll try to clarify my needs, and if it is not possible to achieve with drag and drop this module, try to tell me how to change it, this is what is closest to my goals on moodle.
    I'd like to have a background image .... and have labels beings could best on the side with arrows that students should connect to areas of the photo.
    Labels could in a less uninteresting displaced in the picture but should be adaptable as their size (smaller) and there is no background or border, so as not to obscure part of the image background but with an arrow indicating a point.
    In fact things like this exist with jclic but java is not universally accepted, and tracking info is not effective.
    again thank you for your attention.
Please login to post comments