skip check quiz results page

Home Forums Legacy Support Support queries How-to & Troubleshooting skip check quiz results page

Tagged: 

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #174816
    mikaylatjie
    Spectator
    Hi there,   I would like the user to be able to click submit quiz and go straight to quiz results without having to see this page first and without having to click check quiz results: http://prntscr.com/kqib0v How can I make it one single click on submit button to get quiz results?
    #174902
    Diana
    Participant
    @mikaylatjie please add this code in wp-admin > Plugins > Editor > select wplms customizer plugin > wplms-customizer.php

    add_action('bp_after_course_results',function(){

      ?>

      <script>

      jQuery(document).ready(function($){

        var check_results = $('body').find('.quiz_results');

        if(typeof check_results != 'undefined'){

          $('.quiz_results>li>a').attr('href','#');

        }

      });

      </script>

      <?php

    });

    #175099
    mikaylatjie
    Spectator
    Hi Diana,   I've added the code but it's still giving me this page: http://prntscr.com/kr85zi
    #175330
    Diana
    Participant
    @mikaylatjie Let me check the code again. After that, I will update you here
    #175532
    mikaylatjie
    Spectator
    Any luck yet?
    #175648
    Diana
    Participant
    @mikaylatjie Apologies from my side. This code will work fine for the older versions of wplms. If you have everything updated on your site(3.6 version) Then edit the quiz and enable this switch and then update refer: http://prntscr.com/ksnaix
    #175723
    mikaylatjie
    Spectator
    It works! Thank you :)
    #175779
    Diana
    Participant
    @mikaylatjie Closing this topic then
Viewing 8 posts - 1 through 8 (of 8 total)
  • The topic ‘skip check quiz results page’ is closed to new replies.