Fill the the blank question with excess space

Home Forums Legacy Support Support queries How-to & Troubleshooting Fill the the blank question with excess space

Viewing 15 posts - 1 through 15 (of 19 total)
  • Author
    Posts
  • #369701
    hoanganftu
    Spectator
    Hi, I'm using version 3.9 and not ready to upgrade to the new version. I have lots of fill-in-the-blank questions with the format like this: _____ _____ do you go to the gym? The answer: How, often Each blank needs to be filled in with one word. If I type "how", the answer is correct. However, if I type "how " (with one or two additonal spaces), the answer is incorrect. Is there a way to count them as one? I mean "how" = "how " because a lot of my learners have been making that mistake and it is frustrating for them. My website: www.antoeic.vn
    #369702
    hoanganftu
    Spectator
    This reply has been marked as private.
    #369823
    Veronica
    Moderator
    hi add this code in wplms-customizer.php
    
    
    add_filter('wplms_text_correct_answer','fallback_for_quotes_wplms_text_correct_answer',12,2);
       	function fallback_for_quotes_wplms_text_correct_answer($str_lowered_c_answer,$c_answer){
    
        	if(strpos( $str_lowered_c_answer,' ') !== false){
        		$str_lowered_c_answer = str_replace(' ', '', $str_lowered_c_answer);
        	}
        	
        	
    	  	return $str_lowered_c_answer;
    	}
    
    
    #369838
    hoanganftu
    Spectator
    This reply has been marked as private.
    #369906
    Veronica
    Moderator
    hi can you please share exact URLs so we can check this on your site
    #369907
    hoanganftu
    Spectator
    This reply has been marked as private.
    #370015
    Veronica
    Moderator
    This reply has been marked as private.
    #370044
    hoanganftu
    Spectator
    This reply has been marked as private.
    #370150
    Veronica
    Moderator
    checking on. your site
    #370152
    Veronica
    Moderator
    This reply has been marked as private.
    #370154
    hoanganftu
    Spectator
    This reply has been marked as private.
    #370249
    Veronica
    Moderator
    hi well no issue with the theme we will manually update the theme but see when i have tried to open the quiz it shows not found: http://somup.com/crQjXdrtY5
    #370251
    hoanganftu
    Spectator
    This reply has been marked as private.
    #370315
    Veronica
    Moderator
    checking
    #370322
    Veronica
    Moderator
    hi you are using react quizzes in react quizzes it will not work for now you can do a thing that put an answer with space too so it checks if the user types "hi" or "hi " if the user type one of them then answer will be marked as true
Viewing 15 posts - 1 through 15 (of 19 total)
  • The topic ‘Fill the the blank question with excess space’ is closed to new replies.