Only show finish button if end of chain.

tonyp
tonyp
  • tonyp
  • 6 months ago

We are showing the finish button on each quiz if only 1 page, but also showing the continue to next quiz button.

You should only show finish if the end of the quiz? 

Instead of:

<?php if($item->quiz_type != 0):?>

I would advise; 

<?php if($item->quiz_type != 0 && empty($item->chained_quiz)):?>

I've done it with a layout override anyhow, but the same would apply for the last question, you shouldn't see a continue button if it's the last question.


Access to viewing replies is restricted.
Showing 2 of 2 replies
You do not have permissions for replying to this topic.
Loading...
Confirm delete? This action is irreversible and the data will be deleted permanently. Do you want to continue? Confirm Add New Delete Unpublish Cancel Import Uninstall The selected item successfully deleted.
Shondalai