Question types: Gapfill

Maintained by Picture of Marcus Green Marcus Green
Cloze question type with VERY simple question creation syntax. Can do drag drop, dropdowns or gapfill questions
1639 sites
25 fans


Screenshot #0
Screenshot #1


Picture of Marcus Green
Marcus Green (Lead maintainer)
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Picture of Chris Klissiaris
    Tue, 28 Jun 2016, 9:18 PM
    Well my problem is that i give as right answer 'black cat'. Sometimes the student though types 'black cat ' and it gets it wrong. or ' black cat ' or 'black_ _ cat'. I am trying a way to fix it and have the system ingore if first char is space or last char is space or if i have more than on spaces then change it to one space. Thats my issue.
  • Picture of Marcus Green
    Tue, 28 Jun 2016, 9:26 PM
    I think I understand your issue Chris, and I suspect that a programmer would be able to address it by normalising the spaces (i.e. making them all to a single space). I'm not in a position to work on that right now however.
  • Picture of Marcus Green
    Tue, 28 Jun 2016, 9:28 PM
    Can create an issue here with a full description so when I do my next round of updates I will see if it is something I can address.
  • Picture of Marcus Green
    Mon, 4 Jul 2016, 6:13 PM
    Hi Chris, I remembered there may be a way of doing what you want. In the sample questions that come with the question type (sample_questions.xml) there is one called Regular Expressions. That has a field where the gap is set to [black\s+and\s+white]. That should require the words black and white but ignore the size of white space added between the words. Let me know if that addresses the issue.
  • Picture of Dananjaya Perera
    Thu, 7 Jul 2016, 3:35 PM
    Hi I saw a small bug kind of a thing, when I creating a custom theme. in common rendering, there is no wrapper for draggables and question texts. So there are some complications in doing some CSS styling works on these things. So I put divs with "draggables" and "questiontxt" classes in it on "formulation_and_controls" function. So I suggest to put these kind of wrapper to this plugins newer versions. That will be lot help to people like me who creating Moodle Themes.
  • Picture of Yezi Yang
    Fri, 8 Jul 2016, 1:40 PM

    I saw that you have posted a message in Moodle forum asking about how gapfill question type can be integrated with quizzes in the Moodle mobile. Could I know when you will release an updated version that can be integrated with the mobile app, please? Gapfill is a very useful question type and we have more than 4500 students using the Moodle mobile app in my institution. I am really looking forward to seeing gapfill can be used in Moodle mobile app.
  • Picture of Marcus Green
    Fri, 8 Jul 2016, 11:27 PM
    Thank you for your feedback Yezi. I don't have any current timetable for creating a version that will work with Moodle mobile, though as you could see from my post, it is something I am interested in. In the meantime I am interested in making sure that it works on mobile devices in standard mobile browsers. What percentage of your users use the Mobile app?
  • Picture of Nicolas Ndalpe
    Tue, 11 Oct 2016, 9:28 PM
    Hi Marcus, Thank you for your plugin. I noticed your plugin is not compatible with "Filter Multi-lang" plugin. Is it in your dev roadmap to add a feature to support multiple languages in question types? If you have any plan, please share. I am new to Moodle but not PHP. I can contribute some code if it can help.

    FYI Filter Multi-lang:

    Looking forward hearing from you soon

    Thank you

    Nicolas Dalpe
  • Picture of Marcus Green
    Tue, 11 Oct 2016, 10:02 PM
    Hi Nicholas Ndalpe, thank you for your interest. I recently tested it with the built in (core) MultiLang filter which seemed to work as I expected, but I have not tested it with multilang2. Email me at marcusavgreen at to discuss further.
  • Picture of Freddie Gay
    Wed, 14 Dec 2016, 11:09 AM
    Any concrete plans for making compatible with Moodle for Mobile app?
  • Picture of Marcus Green
    Thu, 15 Dec 2016, 3:03 AM
    Hi Freddie, the short answer is no and you can read a longer answer here
  • Picture of Dave Foord
    Thu, 5 Jan 2017, 10:24 PM
    I have just noticed a problem across multiple Moodle's (which are indpendent of each other) that I work on where, for the gapfill questions that I have created, in the Combined Feedback area, any feedback that was present for 'For any correct response' - has now been made blank. Do you have any idea what would have caused this, and more to the point a solution?

    Thanks in advance.
  • Picture of Marcus Green
    Fri, 6 Jan 2017, 8:41 AM
    Hi Dave, the short answer is no, but I have emailed you directly for more information.
  • Picture of Chris Kenniburg
    Tue, 21 Feb 2017, 11:40 PM
    Hello Marcus, Longtime user of your awesome questiontype! I found an issue with the current version. We updated to the latest version today and I discovered an issue with your CSS which left an open :focus selector. Here is the fixed CSS for styles.css starting at line 12 ========
    /* glow a little around the border */
    .que.gapfill input.droptarget:hover, .que.gapfill input.droptarget:focus {
    border: 1px solid #7bc1f7;
    box-shadow: 0px 0px 8px #7bc1f7;
    -moz-box-shadow: 0px 0px 8px #7bc1f7;
    -webkit-box-shadow: 0px 0px 8px #7bc1f7;

    Without ( .que.gapfill input.droptarget:focus ) that it was putting glow all over my site! currently you have a comma and then :focus { which puts your glow everywhere that has focus.

  • Picture of Marcus Green
    Tue, 21 Feb 2017, 11:44 PM
    Thanks Chris, I will look into that
1 2 3 4 5 6 7 8 9 10
Please login to post comments