chamilo-lms icon indicating copy to clipboard operation
chamilo-lms copied to clipboard

Answer feedback on ALL types of questions.

Open sercon opened this issue 9 years ago • 8 comments

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,.... ) !!!!

sercon avatar Jun 23 '17 08:06 sercon

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);

ChangedFiles.zip

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

sercon avatar Jul 04 '17 14:07 sercon

This is a good idea but we're too short to do that in 1.11.6. Pushing back to 1.11.8. Sorry.

ywarnier avatar Dec 13 '17 15:12 ywarnier

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

visiomart avatar Feb 01 '19 13:02 visiomart

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.

stale[bot] avatar Jul 31 '20 19:07 stale[bot]

It is checked and implemented with this commit https://github.com/chamilo/chamilo-lms/pull/8391/changes/2fecf42eceff93e2c47b356b9b06318489c56f2c

christianbeeznest avatar May 11 '26 19:05 christianbeeznest

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 Image

  • Question type 28 (Multiple answer dropdown combination) do not have the possibility to add comments Image

  • Question type 29 (Multiple answer dropdown) do not have the possibility to add comments Image

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 : Image

Correction page : Image

  • ** 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 : Image

Correction page : Image

  • ** 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 : Image

Correction page : Image

NicoDucou avatar Sep 02 '26 08:09 NicoDucou

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

christianbeeznest avatar Sep 04 '26 12:09 christianbeeznest

All good now

NicoDucou avatar Sep 07 '26 06:09 NicoDucou