Embed questions filter

Filters ::: filter_embedquestion
Maintained by Tim at Lone Pine Koala SanctuaryTim Hunt, John Beedell, at the OU (Perry building)Mahmoud Kassaei
A Moodle text filter plugin that displays questions from the question bank embedded in the page.
Latest release:
881 sites
43 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 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 qustion 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 lest 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.

This plugin was created by the Open University, UK.


This plugin is part of set Embed questions.


Screenshot #0
Screenshot #1
Screenshot #2


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

Comments RSS


  • Peter Jonker
    Tue, Oct 1, 2019, 11:14 PM
    Thanks Tim read about the ID but thought the 3.5 version could do without, reading the instructions I got it to work
  • Wed, Dec 18, 2019, 3:15 AM

    Sorry for the silly question, but can I count the student's grade as if it were on a normal quiz?
  • Tim at Lone Pine Koala Sanctuary
    Wed, Dec 18, 2019, 6:55 PM
    Not a silly question.

    The intention of this plugin is for student to practice their skill and/or test their understanding as they study. Therefore, grades don't go to the gradebook. However, if you install https://moodle.org/plugins/report_embedquestion, then you get a report that lets both students and teachers see which questions have been attempted.
  • El Jabato
    Mon, Feb 17, 2020, 8:45 PM
    I am trying to use the plugin, embed question filter. I already have the idnumber set, and where the category the question is in has an idnumber. When I want to embed the question, everything is fine, I can choose the category and the questions but the key to embed doesn't work. This works if I choose a ramdon question.
  • Tue, Feb 18, 2020, 12:49 AM
    @Javier: what is your category ID and the question idnumber? There are some special characters that don't work within the ID field. Also, another common problem is that the category must be on the website/course and not at the category/server level.
  • El Jabato
    Tue, Feb 18, 2020, 4:11 PM
    At the moment it is working if I add a letter "q" before the question idnumber, and I can add a question without problems, but it sometimes doesn't work when I try to see the question for a second time. It is written error in the id question.
  • Tim at Lone Pine Koala Sanctuary
    Tue, Feb 18, 2020, 4:28 PM
    Just to note that Javier's issue is being discussed in the quiz forum: https://moodle.org/mod/forum/discuss.php?d=397158
  • Wed, May 13, 2020, 11:00 PM
    I'm trying to add essay questions using this plugin, but when I goes to the page I can't see a button to subimit the essay. When I use another type os question, like multiple choice, I can see a button to complete the question.

    Is it possible to use this plugin with essay questions?
    If no, would have a way for me to go into the code and customize it to allow fillings essays also?
  • at the OU (Perry building)
    Thu, May 14, 2020, 4:00 PM
    Hi Sergio, Essay questions are manually graded and filter/embedquestion is designed for interactive questions so that students get immediate feedback and it is appropriate for question behaviours such as 'Immediate feedback', 'Interactive with multiple tires', etc.
  • Thu, Aug 6, 2020, 7:06 PM
    This plugin is either not functioning or I don't know how to embed questions. I have a page I would like to add a question to I have added the embed question filter plugin as well as the otto embed question plugin but I cannot seem to find any options for embeding a question on the course page or the specific page where I want to embed the question.
  • Tim at Lone Pine Koala Sanctuary
    Thu, Aug 6, 2020, 7:08 PM
  • Fri, Aug 7, 2020, 2:04 AM
    Hi, when embeding question in html page on Moodle app, questions can be loaded: moode/login/index.php, because of net::ERR_BLOCKED_BY_RESPONSE, is this a common problem? anyone has the success experience on app?
  • Tim at Lone Pine Koala Sanctuary
    Fri, Aug 7, 2020, 5:29 PM
    We have not yet made any particular effort to get this plugin to work in the mobile app yet. It is something we would like to do, but we have not had time yet.
  • Sat, Oct 3, 2020, 6:04 AM
    Hi Tim, I'm being asked if this filter can save students data in Moodle 3.5. Upgrading is not possible right now. I'm thinking of backporting it. Does this sound do-able?
  • Tim at Lone Pine Koala Sanctuary
    Sat, Oct 3, 2020, 6:07 AM
    Well, you would need to backport the report plugin. And, questoin idnumbers, which this report users, was only added in Moodle 3.8. So, you could probably do it, but wouldn't it be better to spend the energy upgrading the Moodle site to a supported version?
Please login to post comments