Hide submit button in in-course quiz till user has seen all the questions in the quiz

This tip hides the submit quiz button until user marks the last question .
As soon as user marks last question submit button appears otherwiese it will remain hidden.

Please add this script  from wp-admin ->  wplms -> Footer  – >Google anaylitics code :

    if (typeof all_questions_json !== 'undefined'){
        var last = parseInt(all_questions_json[(all_questions_json.length-1)]); 
        if(localStorage.getItem(last) === null){ 
          $('.unit_prevnext .col-md-6 .unit_button').addClass('hide');
           $('.unit_prevnext .col-md-6 .unit_button').removeClass('hide');


Was this article helpful?

Related Articles