diff --git a/application/helpers/expressions/em_manager_helper.php b/application/helpers/expressions/em_manager_helper.php index fec3a23a191..ee0bbe5adc4 100644 --- a/application/helpers/expressions/em_manager_helper.php +++ b/application/helpers/expressions/em_manager_helper.php @@ -1384,6 +1384,16 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL) // Default validation for question type switch ($type) { + case 'M': //NUMERICAL QUESTION TYPE + $validationEqn[$questionNum][] = array( + 'qtype' => $type, + 'type' => 'default', + 'class' => 'default', + 'eqn' => '', + 'qid' => $questionNum, + ); + break; + case 'N': //NUMERICAL QUESTION TYPE if ($hasSubqs) { $subqs = $qinfo['subqs']; @@ -3129,6 +3139,9 @@ public function _CreateSubQLevelRelevanceAndValidationEqns($onlyThisQseq=NULL) // Default validation qtip without attribute switch ($type) { + case 'M': + $qtips['default']=$this->gT('Check any that apply'); + break; case 'N': $qtips['default']=$this->gT("Only numbers may be entered in this field."); break; diff --git a/application/helpers/qanda_helper.php b/application/helpers/qanda_helper.php index 1efeeaf3a6a..0de19afd9d9 100644 --- a/application/helpers/qanda_helper.php +++ b/application/helpers/qanda_helper.php @@ -218,11 +218,6 @@ function retrieveAnswers($ia) { $maxansw=trim($aQuestionAttributes["max_answers"]); $minansw=trim($aQuestionAttributes["min_answers"]); - if (!($maxansw || $minansw)) - { - $question_text['help'] = $message = gT('Check any that apply'); - $qtitle .= doRender('/survey/question_help/help', array('message'=>$message, 'classes'=>''), true); - } } break;