- 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
3 months ago 9:59pm 11 August 2024 Automatically closed - issue fixed for 2 weeks with no activity.