Embed questions filter

Filters ::: filter_embedquestion
Maintained by TimTim Hunt, at the OU (Perry building)Mahmoud Kassaei, Chris Nelson
A Moodle text filter plugin that displays interactive questions from the question bank embedded in the page.
Latest release:
1267 sites
59 fans
Current versions available: 3

This filter allows questions from the question bank to be embedded anywhere that users can input HTML. This can be used in various ways. It can be a way to make learning materials more interactive. For example you may wish to embed an interactive question in a Book, or a Page, or even a Label. Or perhaps a student asks in a forum about some tricky grammar concept, and you have a question that illustrates your reply, well now you can include that question in your reply, so the student can immediately test their understanding.

It is designed to be used with the associated Atto editor plugin which makes it easier to set up the embedding.

Installing the Embedded questions progress report is also recommended. This lets staff and students track what progress has been made at all the embedded questions in a course.

Questions can only be embedded if they have an idnumber set, and where the category the question is in has an idnumber. This is for two reasons: first, to make it harder to accidentally embed questions from your end-of-course exam; and second, because this is how the filter uniquely identifies the question to show.

Note: Essay is not an interactive question. Description is neither interactive nor a question.

This plugin was created by the Open University, UK.


This plugin is part of set Embed questions.


Screenshot #0
Screenshot #1
Screenshot #2


Tim Hunt (Lead maintainer)
at the OU (Perry building)
Mahmoud Kassaei: Developer
Chris Nelson: Product owner
John Beedell: Developer
Please login to view contributors details and/or to contact them

Comments RSS

Show comments
  • Michel Cardinal
    Sat, Aug 27, 2022, 1:41 AM
    I have the same problem as mentioned by Sarah Poulin.
    I use Moodle 4.0.3 Theme Boost.
    I'm not a pro in programming, if someone can help me it would be appreciated.
  • Mon, Aug 29, 2022, 3:14 AM
    Thank you for your great work so far!

    Are you planning to allow integrating questions from outside of the course?
    Because in our moodle-structure different classes have different courses and it would be much easier to copy activities with embedded content, if we could use a shared questions bank for the whole department.

    Any information regarding this would be very much appreciated.
  • Tue, Aug 30, 2022, 5:33 PM
    Hello Max B.,
    We don't have any plans for supporting embedding questions from outside of the course. We've kept it to being content on the same course for easy troubleshooting, security, data recording, and ensuring users having the right permissions etc.
    I recommend simply exporting your questions into the different courses.
    If Moodle Core changes how shareable the question bank is in the future (shareable questions with centralised question versioning would be very nice!) , we might take advantage of that, but that is a bridge to cross when we get there.
  • Tim
    Mon, Sep 5, 2022, 7:42 PM
    Moodle 4.1 is making further changes to the question bank in Moodle. Once that release has happened, we will have to reconsider how the filter finds the question to embed, so things might change at that point, but we have not thought it through yet.
  • Wed, Sep 7, 2022, 6:38 PM
    Thank you for the insights and your fast replies!
    Looking forward to potential changes and until then, we will live with the system as it is and will be considering your suggestions.
  • Thu, May 25, 2023, 4:12 PM
    Do you plan to develop this Plugin as a TinyMCE plugin for Moodle 4.2 as well?
  • Tim
    Thu, May 25, 2023, 4:23 PM
    We do, and it is quite near that top of our todo list, but not right at the top.
  • Thu, May 25, 2023, 4:23 PM
    @Gergely: Yes, it is on our backlog for our internal August release, so hopefully it'll get done around then.
  • Mon, Jun 19, 2023, 8:19 PM
    @Tim, @Chris ... superb, thank you very much. Looking forward to see this plugin with TinyMCE
  • Tue, Jun 27, 2023, 6:20 PM
    @Tim : will it possible to embed essai or RecordRTC quesitons as well? This would alow their management through the questionbank as well as the rubrics grading. Something we have to developp so much workarounds to deal with.
  • Tue, Jun 27, 2023, 6:29 PM
    @Magalie, you should be able embed our RecordRTC qtype (https://moodle.org/plugins/qtype_recordrtc), is that what you mean? Otherwise we are looking at making Essay embeddable, but it would be a "just save" behaviour (as there is no support for human marking in embedded questions).
  • Mon, Jul 3, 2023, 3:48 AM
    Hello, a unique plugin in its category, but I would like to know if you can choose all the questions from a category, because currently the only way to put 100 questions in one place is to do it one by one, additionally there is a way for default the questions are already selected with the correct answer.
  • Mon, Jul 3, 2023, 2:47 PM
    @Joao. Hi, if you want a random question to show from a category, you can use asterisk (*) in place of the question ID. I believe it should allow the student to go through every question in the category once, and then the system will generate a new random sequence.
  • Mon, Jul 3, 2023, 9:58 PM
    @Chris No deseo obtener una pregunta random, si no poder incrustar todas las preguntas una misma categoría en una sola página, sin tener que ingresar una por una.
  • Mon, Jul 3, 2023, 10:01 PM
    @Joao, Oh, I see. I am afraid that is currently not possible. It is something we'd like to do too, but we won't be able to look into that for a year or so.
1 2 3 4 5 6 7
Please login to post comments