BUG REPORT
Welcome to QSM Support Forum. › Forums › QSM Pre-Sales › BUG REPORT
Tagged: #academic # education
- This topic has 5 replies, 3 voices, and was last updated 5 months, 1 week ago by Austin john.
-
AuthorPosts
-
June 11, 2020 at 4:15 pm #4575Stefania **Participant
I implemented horizontal multiple response and the limitation to a certain number of max answers is not working.
With just multiple response, no horizontal, it works.Attachments:
You must be logged in to view attached files.June 11, 2020 at 8:03 pm #4587Kriti SharmaKeymasterHi Stefania,
Currently, this option works only for Multiple response question type and not with horizontal multiple response question type. I am making a bug report for this. Our development team will try to fix this in the future releases.
Kind regards,
KritiJune 12, 2020 at 1:56 pm #4597Stefania **ParticipantHello, i made it work, on line 934 of question-types.php
function qmn_horizontal_multiple_response_display($id, $question, $answers)
{
$question_display = ”;
global $mlwQuizMasterNext;
$limit_mr_text = ‘onchange=”qsmCheckMR(this,’. $limit_multiple_response .’)”‘;
$required = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, ‘required’);
$limit_multiple_response = $mlwQuizMasterNext->pluginHelper->get_question_setting($id, ‘limit_multiple_response’);
if($limit_multiple_response > 0)
$limit_mr_text = ‘onchange=”qsmCheckMR(this,’. $limit_multiple_response .’)”‘;
if ($required == 0) {$mlw_requireClass = “mlwRequiredCheck”;} else {$mlw_requireClass = “”;}
//$question_title = apply_filters(‘the_content’, $question);
$question_display .= qsm_question_title_func($question);
$question_display .= “<div class=’qmn_check_answers $mlw_requireClass’>”;
if (is_array($answers))
{
$mlw_answer_total = 0;
foreach($answers as $answer)
{
$mlw_answer_total++;
if ($answer[0] != “”)
{
$question_display .= “<input type=’hidden’ name=’question”.$id.”‘ value=’This value does not matter’ />”;
$question_display .= “<span class=’mlw_horizontal_multiple’><input type=’checkbox’ ” . $limit_mr_text .” name=’question”.$id.”_”.$mlw_answer_total.”‘ id=’question”.$id.”_”.$mlw_answer_total.”‘ value='”.esc_attr($answer[0]).”‘ /> <label for=’question”.$id.”_”.$mlw_answer_total.”‘>”.htmlspecialchars_decode($answer[0], ENT_QUOTES).” </label></span>”;
}
}
}
$question_display .= “</div>”;
return apply_filters(‘qmn_horizontal_multiple_response_display_front’,$question_display,$id, $question, $answers);
}June 12, 2020 at 6:34 pm #4609Kriti SharmaKeymasterThat’s great Stefania. Can I mark this ticket as resolved now?
Kind regards,
KritiAugust 19, 2020 at 7:14 pm #5106Kriti SharmaKeymasterHi there,
We have fixed this issue in the latest version release 7.0.2 of the plugin. Please check and let me know if you face any issue.
Kind regards,
KritiNovember 14, 2023 at 5:35 am #5519Austin johnParticipantI have detected some bugs in this code,I have been sent the bug reports for the coming two days because Iam busy with my university assignment, and Iam looking The Dissertation Help Uk service provider, because I have to face some difficulties to write my assignment.
Attachments:
You must be logged in to view attached files. -
AuthorPosts
- You must be logged in to reply to this topic.