• ohgreatapollo

    (@ohgreatapollo)


    Hey I’m creating a quiz for a compliance list. I was wondering if it is possible to have it set so that when someone answers a question incorrectly it displays a message and ends the quiz. I was searching through the code for the call to end the quiz just to edit it but was unable to find it.

    Is this a feasible option with this plugin?

    https://wordpress.org/plugins/slickquiz/

Viewing 2 replies - 1 through 2 (of 2 total)
  • Plugin Author jewlofthelotus

    (@jewlofthelotus)

    @ohgreatapollo I’m sure you’d be able to modify the plugin to do that, but it’s not a feature that’s built in.

    You’d could either add some code to the php/slickquiz-front.php file that does that, or you could modify slickquiz/js/slickQuiz.js to do it. I’d probably go with the slickQuiz.js route because then you could just adjust the checkAnswer function.

    Just bear in mind that if you do make any changes to the plugin code, should you ever update the plugin, those changes will be lost.

    completeQuiz is the method that “ends” the quiz, but you might also need to modify that based on what you’re going for.

    Hope this helps get you on the right track! Thanks for choosing SlickQuiz!

    Thread Starter ohgreatapollo

    (@ohgreatapollo)

    Thanks for the assistance! I’ll check it out and come back if I have any other questions.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘If question is incorrect end quiz and display message’ is closed to new replies.