Answer feedback on ALL types of questions.
In the current version of Chamilo it is only possible to enter feedback on wrong or right answers for some types of questions (eg, comment box next to each answer with the multiple choice question type - comment field in table c_quiz_answer) . This comment is then displayed as feedback after answering the question. This should really be possible for ALL types of questions (fill-in,.... ) !!!!
Workaround/Solution for fill in questions....
Solution: add and read info to database table "c_quiz_answer" field "comment"
added $answerComment = '' parameter to function display_fill_in_blanks_answer() in exercise_show_functions.lib.php
and used it in line 51 echo '</td>'.$answerComment.'</tr>';
called from exercise.class.php lines 4319 4678 -> added $answerComment parameter in function call
in fill_blanks.class.php function createAnswersForm($form) line 54 added isset($objectAnswer->comment[1]) ? $defaults['comment']=$objectAnswer->comment[1] : $defaults['comment']='';
in fill_blanks_class.php function createAnswersForm($form) line 338 added
$form->addElement(
'html_editor',
'comment',
'comment',
['id' => 'comment'],
array('ToolbarSet' => 'TestQuestionDescription')
);
in fill_blanks.class.php function processAnswersCreation($form, $exercise) line 471 edited
$objAnswer->createAnswer($answer, 0, $form -> getSubmitValue('comment'), 0, 1);
In windows, the doctrine error still pops up :-( OK on linux. Just commented out the throw command in DocParser.php on line 734 as a temp workaround for Windows
Fatal error: Uncaught Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Symfony\Component\Validator\Constraints\NotBlank" in property Chamilo\CoreBundle\Entity\Course::$title does not exist, or could not be auto-loaded. in D:\Apps\WAMP\vhosts\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php on line 54 ( ! ) Doctrine\Common\Annotations\AnnotationException: [Semantical Error] The annotation "@Symfony\Component\Validator\Constraints\NotBlank" in property Chamilo\CoreBundle\Entity\Course::$title does not exist, or could not be auto-loaded. in D:\Apps\WAMP\vhosts\chamilo\vendor\doctrine\annotations\lib\Doctrine\Common\Annotations\AnnotationException.php on line 54 Call Stack
This is a good idea but we're too short to do that in 1.11.6. Pushing back to 1.11.8. Sorry.
What happens is that after the comment is shown in the modal window there is no button to move the the next question. and if you close the modal window you are back the the same question you answered and still asked to proceed
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
It is checked and implemented with this commit https://github.com/chamilo/chamilo-lms/pull/8391/changes/2fecf42eceff93e2c47b356b9b06318489c56f2c
It works fine in general but there is still some issues :
No comment in the edition page of the question
-
Question type 18 (Draggable) do not have the possibility to add comments
-
Question type 28 (Multiple answer dropdown combination) do not have the possibility to add comments
-
Question type 29 (Multiple answer dropdown) do not have the possibility to add comments
The comment do not appear on the correction page
- ** Question type 3 and 27 (Fill in the blanks and Fill in the blanks combinaison) have a comment field on the question edition page but it does not appear on the correction page.
edition page :
Correction page :
- ** Question type 6 and 26 (Hotspot and Hotspot combinaison) have a comment field on the question edition page but it does not appear on the correction page.
Edition page :
Correction page :
- ** Question type 16 (Calculated question) have a comment field on the question edition page but it does not appear on the correction page.
Edition page :
Correction page :
Updated the migrated Vue exercise flow to complete answer comment/feedback support for the affected question types. Comments are now preserved through editing and displayed on the result/correction page. Multiple answer dropdown was also verified manually. https://github.com/chamilo/chamilo-lms/pull/9021
All good now