Multiple Quiz Options – Student can select one quiz to complete the unit/course

Home Forums Legacy Support Support queries How-to & Troubleshooting Multiple Quiz Options – Student can select one quiz to complete the unit/course

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #359737
    shanekeller
    Participant
    Hello, We have a course unit where we don't want to make all four quizzes mandatory at the end. We want to allow the student to select one of the four to take or have the ability to select the quizzes that wish to take. 1. Can we set up the quizzes so the student only has to take one of the four quizzes? 2. And, once they take a minimum of one quiz in that unit, they can proceed to the next Unit or in this case complete the course? Thank you
    #359851
    Veronica
    Moderator
    hi I have also discussed this with my other teammate but this is not possible now
    #359881
    shanekeller
    Participant
    Hi Veronica, How about this scenario: 5 Units. A. Can we set up 4 different quizzes in Unit 5 and not make them mandatory? B. Then can they choose any Quiz in Unit 5 to complete and get a quiz certificate? C. If the Quiz is not connected to the course OR the questions do not have a score, will it work so the student can select any of the 4 quizzes to take? I am simply trying to find a way where the student can select the Quiz they want to take based on their area of interest.
    #360001
    Veronica
    Moderator
    hi if you don't add a score then it will not consider in the evaluation but in our code it will still check for all units, quizzes are completed we can avoid this by using custom code
    add_filter('wplms_finish_course_check',function($flag,$curriculum,$user_id){
    	if(!empty($flag) && is_numeric($flag) && get_post_type($flag)=='quiz'){
    		$couse = get_post_meta($flag,'vibe_quiz_course',true);
    		if(empty($couse)){
    			return false;
    		}
    	}
    	return $flag;
    });
    this will avoid checking these quizzes when the course is completed but still, choice of quiz cant be captured
    #360509
    shanekeller
    Participant
    Hi Veronica, So, no matter what the scenario is, all quizzes need to be completed whether or not the scoring is removed from the quizzes & individual questions? Thank you, Shane
    #360557
    Veronica
    Moderator
    yes, in the above code, it will not consider the quiz once the course is completed
Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Multiple Quiz Options – Student can select one quiz to complete the unit/course’ is closed to new replies.