Menu

#13 Previous button shows on first page of survey

open
nobody
None
5
2017-11-10
2006-05-19
Jason Grout
No

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;

Discussion

  • Jason Grout

    Jason Grout - 2006-05-19

    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;

     
  • Hector Ramses

    Hector Ramses - 2017-11-10

    Nicely Done!
    It shows the 'FINISH' button until the very last page of the survey!

     

Log in to post a comment.

MongoDB Logo MongoDB