diff --git a/qanda.php b/qanda.php
index 6204e56870c..fde456e70d4 100644
--- a/qanda.php
+++ b/qanda.php
@@ -215,7 +215,8 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
//A bit of housekeeping to stop PHP Notices
$answer = "";
if (!isset($_SESSION[$ia[1]])) {$_SESSION[$ia[1]] = "";}
-
+ $qidattributes=getQuestionAttributes($ia[0]);
+ //echo "
";print_r($qidattributes);echo "
";
//Create the question/answer html
switch ($ia[4])
{
@@ -231,7 +232,7 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
break;
case "L": //LIST drop-down/radio-button list
$values=do_list_radio($ia);
- if (count($values[1]) > 1)
+ if (!$displaycols=arraySearchByKey("hide_tip", $qidattributes, "attribute", 1))
{
$qtitle .= "
\n"
. _INSTRUCTION_LIST."";
@@ -239,7 +240,7 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
break;
case "!": //List - dropdown
$values=do_list_dropdown($ia);
- if (count($values[1]) > 1)
+ if (!$displaycols=arraySearchByKey("hide_tip", $qidattributes, "attribute", 1))
{
$qtitle .= "
\n"
. _INSTRUCTION_LIST."";
@@ -247,7 +248,7 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
break;
case "O": //LIST WITH COMMENT drop-down/radio-button list + textarea
$values=do_listwithcomment($ia);
- if (count($values[1]) > 1)
+ if (count($values[1]) > 1 && !$displaycols=arraySearchByKey("hide_tip", $qidattributes, "attribute", 1))
{
$qtitle .= "
\n"
. _INSTRUCTION_LIST."";
@@ -258,15 +259,15 @@ function retrieveAnswers($ia, $notanswered=null, $notvalidated=null)
break;
case "M": //MULTIPLE OPTIONS checkbox
$values=do_multiplechoice($ia);
- if (count($values[1]) > 1)
+ if (count($values[1]) > 1 && !$displaycols=arraySearchByKey("hide_tip", $qidattributes, "attribute", 1))
{
- $qtitle .= "
\n"
+ $qtitle .= "
\n"
. _INSTRUCTION_MULTI."";
}
break;
case "P": //MULTIPLE OPTIONS WITH COMMENTS checkbox + text
$values=do_multiplechoice_withcomments($ia);
- if (count($values[1]) > 1)
+ if (count($values[1]) > 1 && !$displaycols=arraySearchByKey("hide_tip", $qidattributes, "attribute", 1))
{
$qtitle .= "
\n"
. _INSTRUCTION_MULTI."";