Can we have the retake quiz on the actual quiz page and not in the check results section? Or have it in both?
Well that depends if you want it in in-course quiz (see
screenshot) or in single quiz (see
screenshot ) .
I wou ld like the option for both. I think the retake button should be available in a more accessible place.
This is for when the user has already taken a quiz. I want the option for them to retake on the same page.
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 ?
Yes that is fine. Can you please provide code.
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
This is for user generated quiz that I added. Will it work ?
Can you give a real example on my site so I can see?
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 .
This reply has been marked as private.
Modified code a bit please remove previous one and add this new one :
https://gist.github.com/alexvibealex/cedb95700542d1fd6a05af54ec6963ca