Multiple quiz questions with single submit

Created on 3 June 2024, 7 months ago
Updated 25 August 2024, 4 months ago

Hello - thanks so much for this module suite, it's clear a lot of work and care has gone in to it.

I have just started an H5P lesson activity module based on the anu_lms_custom_paragraph sub module - thanks for including that.

I've asked some questions over on the H5P module's issue queue which you can read there if you're interested: https://www.drupal.org/project/h5p/issues/3452143 💬 Listeners and callbacks Active

I have some questions for Anu though:

1. In the quiz module, can I have multiple question of different types in a page but only have one submit button ? at the moment if I have, for example, a simple question and a check box list question then I get one submit for each question, I'd like just one - is that possible ?

2. For my H5P component success tracking, I am adding a quiz question and hiding it, then setting it's value and submitting it via JS when the component is completed. This gives me the score tracking and also the Next button enable/disbale feature. But ... that is a bit hacky. I'm thinking of having a setting in the H5P paragraph to enable quiz tracking or not, and if it is set then having a hidden form field that is set via JS and has the rest of the quiz tracking features (naviagation and data). Please let me know your thoughts if you have any better ideas of how to achive this in a nice and Anu compliant way ;)

💬 Support request
Status

Fixed

Version

2.10

Component

Miscellaneous

Created by

🇬🇧United Kingdom 8bitplateau

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

Comments & Activities

  • Issue created by @8bitplateau
  • Assigned to elaman
  • Issue was unassigned.
  • 🇰🇬Kyrgyzstan elaman

    Hey @8bitplateau, happy to see you using our module!

    Answering your questions:

    1. In the quiz module, can I have multiple question of different types in a page but only have one submit button ? at the moment if I have, for example, a simple question and a check box list question then I get one submit for each question, I'd like just one - is that possible ?

    I believe you are adding "Question - " type paragraphs, into a "Lesson" content type. If you try to add multiple questions into a "Quiz" content type, you'd have a single "Submit" button. Important to node that you can have only single "Quiz" per module.

    There are more details in the documentation: https://www.drupal.org/docs/contributed-modules/anu-lms/create-courses-a...

    2. For my H5P component success tracking, I am adding a quiz question and hiding it, then setting it's value and submitting it via JS when the component is completed. This gives me the score tracking and also the Next button enable/disbale feature. But ... that is a bit hacky. I'm thinking of having a setting in the H5P paragraph to enable quiz tracking or not, and if it is set then having a hidden form field that is set via JS and has the rest of the quiz tracking features (naviagation and data). Please let me know your thoughts if you have any better ideas of how to achive this in a nice and Anu compliant way ;)

    The best way to add new features to Anu is by overriding React components, where you have much better control over UI and state of the components. Please check out the included example module for performing such override: https://git.drupalcode.org/project/anu_lms/-/tree/2.x/examples/anu_lms_o...

    Please let me know if I answered you questions. We are happy for you to reach out to us if you any more questions.

  • 🇬🇧United Kingdom 8bitplateau

    Hey @elaman thanks for the reply.

    1. OK - got it. Good you can do both, thanks (read the docs).

    2. Hmm, ok thanks, maybe the easiest thing is to have two types of H5P component, A 'dumb' one for simple instruction and one that extends one of the quiz/question components and leverages its state features.

    thanks for the pointers :)

  • Status changed to Fixed 4 months ago
  • Automatically closed - issue fixed for 2 weeks with no activity.

Production build 0.71.5 2024