Skip to content

Commit

Permalink
Added line to delete values for conditional questions, if survey user…
Browse files Browse the repository at this point in the history
… changes response to the original question that showed the conditional one.

git-svn-id: file:///Users/Shitiz/Downloads/lssvn/trunk/unstable@868 b72ed6b6-b9f8-46b5-92b4-906544132732
  • Loading branch information
jcleeland committed Jan 30, 2004
1 parent 6daea74 commit a9e6145
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions question.php
Expand Up @@ -692,6 +692,10 @@
//matches have not been found in ALL distinct cqids. The question WILL NOT be displayed
if (returnglobal('move') == " "._NEXT." >> ")
{
if (isset($_SESSION[$_SESSION['fieldarray'][$currentquestion][1]])) //Removes answers to conditional questions that are no longer applicable
{
unset($_SESSION[$_SESSION['fieldarray'][$currentquestion][1]]);
}
$currentquestion++;
$ia=$_SESSION['fieldarray'][$currentquestion];
$_SESSION['step']++;
Expand Down

0 comments on commit a9e6145

Please sign in to comment.