Question types: Drag and drop markers

Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, Picture of Jamie PrattJamie Pratt, Picture of Phil ButcherPhil Butcher
The student can drag markers to indicate key features on an image.
166 sites
23 fans
Current versions available: 6

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.


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
  • Picture of Colin Price
    Mon, Sep 21, 2015, 8:47 PM
    Hmm. Thanks for checking. There must be something in my set-up stripping out the tags when Save Changes is clicked....
  • Picture of Marcus Green
    Wed, Nov 11, 2015, 10:00 PM
    It would be useful if the documentation link was pointed to
  • Tim at Lone Pine Koala Sanctuary
    Fri, Nov 13, 2015, 4:29 AM
    Thanks for the idea Marcus. Done.
  • Picture of Dave Foord
    Wed, Apr 27, 2016, 5:17 PM
    I have discovered an issue with this plugin. I am creating some resources to teach decimals, and have created activities where I want to have 10 markers (1 for each digit) which the students have to drag into correct position of a number grid. The question type doesn't seem to like having a marker "0" - the other numbers are fine, but not the 0 (which is quite important for what I am wanting). Has anyone else experienced this?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Apr 27, 2016, 6:17 PM
    I can reproduce this bug. Well done for finding it. I have reported it as MDL-53964.
  • Picture of Dave Foord
    Thu, Sep 22, 2016, 3:32 AM
    I have just created a quiz using this question type, and then tested it on an iphone, where it doesn't allow the markers to be dragged. I was under the impression that this had been a problem in the past, but had been fixed - or have I imagined this. Is there a way that this question type can be used so that it works on iphone and similar devices?

    Thanks in advance.
  • Tim at Lone Pine Koala Sanctuary
    Thu, Sep 22, 2016, 4:28 PM
    Note, this question type is now in Moodle core. Can you test the latest version at

    I was under the impression that it works fine on iOS, and I am pretty sure I would have users complaining at me if it was not working at the OU.
  • Picture of Dave Foord
    Thu, Sep 22, 2016, 4:41 PM
    Thanks for response Tim, yes the test question on Moodle Core, allows me to drag the items - although you cannot complete the quiz, as there is too much space between the items and the image, and I cannot drag and scroll at the same time on my phone. If I turn phone to portrait, the parts of the image that are off the right hand side, can then not be reached. Looking at the Moodle that I am working on, it tells me the plugin is up to date - I cannot see any difference in the way that you have created your question, and I have created mine - could there be another setting in my moodle that is stopping this from working?
  • Tim at Lone Pine Koala Sanctuary
    Thu, Sep 22, 2016, 6:12 PM
    Looking throug the history of what changed since these were added to Moodle core, there is not much related to mobile devices. The only one I can see on mentions Andriod, not iOS.
  • Picture of Dave Foord
    Thu, Sep 22, 2016, 6:27 PM
    Thanks Tim, I exported my quiz and installed it onto a different moodle, where the quiz did work on the iphone - so my issue must be related to my particular installation of moodle anway - and I will have fun trying to work out where and why...
  • Tim at Lone Pine Koala Sanctuary
    Tue, Jun 27, 2017, 12:07 AM
    This question type is now part of the standard Moodle package. Please can you post your question in the quiz forum:
  • Picture of Jonas Lanz
    Thu, Oct 5, 2017, 3:43 PM
    We had recently a problem reported, that pictures were not imported from one course to another by direct import functionality. But I cannot reproduce.

    By comparing the xml-export file of this question type with the xml-export file of other question types, the "path"-tag is missing (see below):

    question type="matching"
    file name="1a.png" path="/" encoding="base64">iVBORw0KGgoAAAANSUhE...

    question type="ddmarker
    file name="k8af094_gleichung_4_600x249.png" encoding="base64"...

    Is this missing tag intended or could this be the reason for the problem?
  • Picture of Nosheen Irshad
    Thu, Nov 1, 2018, 12:15 PM
    We need some help with Drag and Drop question.

    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. Can we achieve this with drag and drop marker plugin instead of drag and drop onto image if possibly images can be uploaded instead of text markers?

    We are using Moodle version 3.4.1+
  • Picture of Paul Broekhof
    Thu, Apr 30, 2020, 6:27 PM
    I love this question type! One observation: when I upload the image to drop the marker onto, it is automatically converted to a low resolution. I can understand that some type of conversion is required to allow the specification of the drop zones, but this resolution makes it really hard to read any text on the background image. It would be great if a higher resolution was supported (or better still: if the user could somehow control the resolution of the background image).
  • Tim at Lone Pine Koala Sanctuary
    Thu, Apr 30, 2020, 11:47 PM
    This question type has been part of standard Moodle for ages, so this is not really the place to discuss it.

    Anyway, the good news is that my co-worker Huong has just done exactly the change you want (MDL-68446 and linked issues) and that should be included in Moodle 3.9.
1 2 3 4 5
Please login to post comments