Interventi di Joseph Rézeau

Immagine Core developers Immagine Plugin developers Immagine Testers Immagine Translators

Hi there!

To answer a new feature request for my RSA question type I need to add in my edit form a numerical element, but can't find it in the API.

I also need the input number in that field to be greater than 0 AND not greater than the number of answers created for the RSA question. But I guess that can be dealt with in the form validation.

Thanks for pointers...

Media dei voti:  -
Immagine Core developers Immagine Plugin developers Immagine Testers Immagine Translators

Unfortunately in this discussion there has been a mix-up of replies related to the Quiz activity, which is completely different from the Questionnaire activity, which has led to the discussion being difficult to understand.

Therefore I suggest stopping from adding posts to this discussion, in order to prevent further confusion.

Thanks! 🙂

Immagine Core developers Immagine Plugin developers Immagine Testers Immagine Translators

Thanks for providing a backup of your Lesson.

It's working correctly on my Moodle test site. However, with DEBUG mode ON I can see some error messages like:

Incorrect scale id: 38
line 1021 of \lib\grade\grade_item.php: call to debugging()
line 843 of \lib\gradelib.php: call to grade_item->load_scale()
line 796 of \lib\gradelib.php: call to grade_format_gradevalue_real()
line 535 of \lib\gradelib.php: call to grade_format_gradevalue()
line 3630 of \mod\lesson\locallib.php: call to grade_get_grades()
line 265 of \mod\lesson\view.php: call to lesson->process_eol_page()

Maybe due to the fact that in your Lesson Settings you selected Grade: Scale: Default competence scale (and I do not have your Scales system installed on my test site?).

When exactly do you see the error message you reported "Exception : Attempt to assign property "response" on bool"? Screenshots please.

I see your lesson is written in French. If you like you could re-post this discussion to the French speaking forum, where you will be able to get answers in French.