Previous button shows on first page of survey
Brought to you by:
jholmes763
The previous button shows on the first page of a
survey. Patch is:
--- uccass/classes/survey.class.php (revision
562)
+++ uccass/classes/survey.class.php (revision
563)
@@ -342,6 +342,9 @@
case $survey['total_pages']:
$button['next'] = 'Finish';
+ case 1:
+ $show['previous_button'] = FALSE;
+
default:
$show['question'] = TRUE;
Logged In: YES
user_id=144233
It munged my patch. Here it is again.
--- uccass/classes/survey.class.php (revision 562)
+++ uccass/classes/survey.class.php (revision 563)
@@ -342,6 +342,9 @@
case $survey['total_pages']:
$button['next'] = 'Finish';
+ case 1:
+ $show['previous_button'] = FALSE;
+
default:
$show['question'] = TRUE;
Nicely Done!
It shows the 'FINISH' button until the very last page of the survey!