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!
416 sites
80 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


  • Tim at Lone Pine Koala Sanctuary
    Mon, Sep 26, 2016, 5:28 PM
    Now possible. Sorry.
  • Picture of erika alarcon
    Wed, Feb 1, 2017, 12:41 AM
    Hi, Is this plugin working in Moodle 3.1 or 3.2?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Feb 1, 2017, 12:56 AM
    As of Moodle 3.0, this is part of the standard Moodle release. It is no longer an extra plugin. So, yes, it works!
  • Picture of Teacher Jaque
    Fri, Apr 14, 2017, 7:28 AM
    Dear Tim,

    I've just installed this Drag and Drop onto image to my Moodle 2.6, now there is a msg stating a missing file and my site became a mess. I already tried to delete the plugin though the C-Panel but there is no file with such a name. my site ( is frozen and there nothing I can do. Could you help me, please?
  • Picture of Abdul Ghaffar
    Fri, May 19, 2017, 8:44 PM
    Hi Tim,
    Any plans for updating it for newer version of moodle i.e 3.x .
  • Tim at Lone Pine Koala Sanctuary
    Mon, May 22, 2017, 8:00 PM
    Look a few comments up:

    "As of Moodle 3.0, this is part of the standard Moodle release. It is no longer an extra plugin. So, yes, it works!"
  • Germán and Temudgin
    Tue, Apr 10, 2018, 2:24 AM
    This is a great question type. Maybe it could look even better:

    As suggested by Joseph Rézeau in,:

    ".. using the customized CSS rules, as per my previous post. No visible overlapping, no annoying boxes, the result is exactly the same as the original legend.

    It's a pity that one has to resort to such additional CSS rules, which can only be added by a Moodle site Admin, and of course will not suit all types of D & D questions. I suggest that optional settings be made available within the editing interface of such questions, to make them more flexible."

    How difficult would it be to have the border for the draggable items be selectable (border/no border) ?

    Would this be worth adding a Moodle Tracker issue?
  • Picture of Stefan McGarvey
    Thu, Sep 6, 2018, 9:42 PM
    Hello, I just tried installing the zip file onto my Moodle 2.6+ site and now my site is locked on the Plugins Check screen telling me I require qtype_gapselect (2014111200) I don't seem to be getting any help from the forum so I was hoping someone here might be able to help.
  • Tim at Lone Pine Koala Sanctuary
    Fri, Sep 7, 2018, 12:48 AM
    The message means exactly what it says: if you want to install this plugin, you need to install qtype_gapselect first, or at the same time.
  • Picture of Liam Goldfinch
    Sun, Oct 21, 2018, 9:06 AM
    Hello Is there an updated version to this plugin as my moodle site wants a newer version
  • Tim at Lone Pine Koala Sanctuary
    Mon, Oct 22, 2018, 12:57 AM
    This question type is now part of standard Moodle. If you are running a supported version of Moodle, you should already have it.
  • Picture of Nosheen Irshad
    Thu, Nov 1, 2018, 12:18 PM

    Is there a way to use drag and drop plugins such that if we have following requirement it gets done with correct marking.

    We have a background image where we want the student to drop images beginning with letter m. In the draggables we are providing a mix of m letter objects and others. Now imagine if there are 3 drop locations on the background image and we have 3 m letter objects. Consider drop placeholders as D1, D2 and D3 and correct images are m1, m2, m3. The user should be able to drop either m1 or m2 or m3 on D1 or D2 or D3 and the answer should be correct. But the correct plugin binds every selected draggable to specific placeholder we see on the background image. How can we achieve this? Can this happen via some customization in the plugin at the code level? Please help.

    We are using Moodle version 3.4.1+
  • Picture of Victor Santos
    Fri, Feb 15, 2019, 12:35 AM
    I wanted to use this question type, but I have a problem! Is it possible to have multiple answers for the same "drop zone"?
    For example I have an image where the student have to answer which products come from milk (yoghurt-butter-cheese-ice cream) but I don't know in which zone the student will drop the answer. He could be write but the exercise will tell me that the answers are wrong. Sorry for the bad English. Hope you can help me.
  • Picture of Evolution Hospitality Institute
    Mon, Dec 2, 2019, 12:00 PM
    New update of this plugin is not working
    this.container.all('li.matchdrag').setStyle('cursor', 'move'); = TypeError: this.container is null
    please assist

  • Tim at Lone Pine Koala Sanctuary
    Fri, Dec 6, 2019, 1:33 AM
    I don't understand why you are commenting here. As it says above, since Moodle 3.0, this question type has been part of the standard Moodle package. You should not install it from here.
Please login to post comments