";
echo(_('Only show question '));
$sql2 = "SELECT content FROM ".$GLOBALS['ESPCONFIG']['question_table']." WHERE id=$qid1";
$result2=execute_sql($sql2);
list($content)=fetch_row($result2);
$content=strip_tags($content);
$dots = "";
if (strlen($content) > 30) $dots = "...";
print "'".substr($content,0, 30).$dots."' ";
echo(_('if answer to question '));
$sql2 = "SELECT content FROM ".$GLOBALS['ESPCONFIG']['question_table']." WHERE id=$qid2";
$result2=execute_sql($sql2);
list($content)=fetch_row($result2);
$content=strip_tags($content);
$dots = "";
if (strlen($content) > 30) $dots = "...";
print "'".substr($content,0, 30).$dots."' ";
echo $conditions[$cond]." '".$cond_val."'";
$result->MoveNext();
print " ";
print "
";
}
print "
";
}
$sql = "SELECT id,type_id,position,content FROM ".$GLOBALS['ESPCONFIG']['question_table']."
WHERE survey_id=$sid AND deleted='N'
ORDER BY position";
$result = execute_sql($sql);
$max = record_count($result);
?>
A question that has a condition must be an optional question. So, if you define a condition on a question, the "Required" parameter is set to "No".
A question that has a condition must be on the next page than the question/value that is used to compare it with. Use the "Order tab" to insert a section break where wanted (this is NOT done automatically).
A Yes/No question can only be compared using the values "Yes or "No".'));
?>