Have retake quiz button on the quiz page not in check results

Home Forums Legacy Support Support queries Setup issues Have retake quiz button on the quiz page not in check results

Viewing 14 posts - 1 through 14 (of 14 total)
  • Author
    Posts
  • #134903
    joshlee18
    Participant
    Can we have the retake quiz on the actual quiz page and not in the check results section? Or have it in both?
    #134991
    Anshuman Sahu
    Keymaster
    Well that depends if you want it in in-course quiz (see screenshot) or in single quiz (see screenshot ) .
    #135032
    joshlee18
    Participant
    I wou ld like the option for both. I think the retake button should be available in a more accessible place.
    #135056
    joshlee18
    Participant
    This is for when the user has already taken a quiz. I want the option for them to retake on the same page.
    #135170
    Anshuman Sahu
    Keymaster
    We can give you shortcode for that . you need to put that shortcode in quiz completion message and then it will show the retake quiz button . Note that ,that custom retake button will open up single quiz page even when the user opens up quiz in course status page . Are you ok with that ?
    #135202
    joshlee18
    Participant
    Yes that is fine. Can you please provide code.
    #135308
    Anshuman Sahu
    Keymaster
    Please add this given code in your wplms-customizer.php file in wplms customizer plugin : https://gist.github.com/alexvibealex/cedb95700542d1fd6a05af54ec6963ca Then you can use this shortcode : [quiz_retake quiz="144" course="50"] where 144 is quiz id and 50 is course id
    #135400
    joshlee18
    Participant
    This is for user generated quiz that I added. Will it work ?
    #135401
    joshlee18
    Participant
    Can you give a real example on my site so I can see?
    #135498
    Anshuman Sahu
    Keymaster
    you can use this shortcode anywhere but I would recommend to put this shortcode in your quiz completion message  . Yes it will work . Just make sure that quiz and course id is provided in that shortcode in which the quiz is added .
    #135562
    joshlee18
    Participant
    This reply has been marked as private.
    #135658
    Anshuman Sahu
    Keymaster
    Modified code a bit please remove previous one and add this new one : https://gist.github.com/alexvibealex/cedb95700542d1fd6a05af54ec6963ca
    #150342
    papuche37
    Spectator
    Thanks for this tip!!!
    #150364
    Diana
    Participant
    @papuche37, Thanks..!!
Viewing 14 posts - 1 through 14 (of 14 total)
  • The topic ‘Have retake quiz button on the quiz page not in check results’ is closed to new replies.