Drupal LMS Fill in the Blanks

Created on 23 June 2025, 10 days ago

Problem/Motivation

First, thank you for the tremendous work being put into developing this module. I’m very confident it will become the major LMS solution for Drupal.

One key feature currently missing is "Fill in the Blanks" support as a native activity type. This is a widely used interactive format in online learning. At the moment, the only way to implement it is through the H5P integration, but unfortunately, H5P activities are not being tracked properly via lms_h5p ( #3530848 πŸ› LMS H5P Course Activities Not Being Correctly Evaluated Active ), which creates a gap for this essential functionality.

I noticed that ob3ron also expressed interest in this capability, and I believe many others in the community would benefit from it as well.

I’m not a developer, but I would be more than happy to test and provide feedback.

Thanks again for your amazing work on this project!

✨ Feature request
Status

Active

Version

1.0

Component

Activities and answers

Created by

πŸ‡ΊπŸ‡ΈUnited States GarChris

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @GarChris
  • πŸ‡΅πŸ‡±Poland Graber

    Adding some initial thoughts on this:

    • New Activity-Answer plugin in the lms_answer_plugins submodule
    • Editing: Text field with some placeholders (_answer1_, _answer2_, ..)
    • Editing: Multiple string field with possible answers to fill, if empty, test input will be required from the student, if not empty - validation if the number of placeholders is the same as the number of values
    • Answering: if possible answers field is empty - text input elements in place of placeholders, otherwise single-select with AJAX to reduce number of options once selected
    • Score calculation - max number of points equal to total number of blanks, +1 point for a correct selection, 0 for incorrect, final score equal to acquired points / max points.
    • Follow-up: add drag n drop functionality on js side
    • Follow-up: add immediate feedback option with a feedback column in the possible answers field (as correct and incorrect) - to refine
  • πŸ‡¨πŸ‡¦Canada ob3ron Canada

    What is the expected functionality of a blank filling -- is there one exact correct answer? Or is a near match acceptable?

    If we do drag-n-drop, that simplifies grading. Is it maybe worth starting from a drag-n-drop mindset, which could then be expanded into other purposes beyond fill-in-the-blanks, like sorting, matching, and sequencing?

    @graber do you mean we should create a new ecosystem module for lms_answer_plugins?

  • πŸ‡΅πŸ‡±Poland Graber

    do you mean we should create a new ecosystem module for lms_answer_plugins?

    No. Ok to have it in lms/modules/lms_answer_plugins

Production build 0.71.5 2024