I want to display the results of the quiz after user clicks on the submit quiz button. I don't want the user to click on check results button which takes him to the quiz results page. I want the reults to show up right after the user clicks submit quiz button.
Thanks
Well this is the default behaviour of wplms to show check results button to show the results.
You can try our in-course quiz feature, go to wp-admin->lms->settings->enable in-course quiz. Enable this setting and then the quiz will start in the course status page only and the results will be shown in the popup instead of redirecting you to the results page.
You said this is possible in the theme comments and said we will share some short code to do this.
You need the Course ID, Quiz ID for this to display the quiz results in quiz completion. Use this shortcode in the quiz completion message :
[
quiz_results quiz_id ="XXX" course_id="YYY"]
grab the ids from WP Admin area.
Add this code in WPLMS Blank child theme - functions.php or WPLMS Customizer plugin - wplms_customizer.php
https://gist.github.com/MrVibe/ba69182dc9ab036082e4b87c287c689c
how to use this :
https://wplms.io/support/knowledge-base/how-to-use-coding-tips/
why do i need to grab the quiz ID and course ID ? It should be default for all the quizes..
Because this is a temporary fix and the shortcode is not aware of course id and the quiz id.
You can also add user_id parameter and get any user's any quiz result anywhere, even inside widgets or posts or pages.
For a permanent fix we need to make changes in the plugin which will take time.
This reply has been marked as private.
Please explain this <span style="color: #4b4d4d; font-family: Lato; font-size: 14px;">You can also add user_id parameter and get any user's any quiz result anywhere, even inside widgets or posts or pages</span>
Please solve my issue its urgent i dnt want user to check results from results page. it should be displayed once the user clicks submit quiz ....
PLz respons asap
I dnt have any programming language so icnt fix the same on my own
Seems to be working.
Share which quiz should I edit for this ?
I want it to work for all users not for specific one plz respond the same query with good answer
This is not available in the theme at the moment.
I know this is not my thread, but I really think this feature should be available. The results should be displayed for the current user on all quizzes they take.
@angelantonio: You can create a feature request in our feature request forum, but as of now its not available.