Hi,
I'm sorry if this has already been discussed or if this is wrong forum for this question.
I have a custom JS code and I need that to run only on the quiz attempt page, for that I want to use the HTML block, but the problem is that, the HTML block has to be called upon manually each and every time the quiz is created. Is there any way I can have that particular HTML on the quiz attempt page (attempt.php) forever?
Thank you.
Yes, but to do it is a non-obvious two-step process:
- Go to the list of courses page (URL .../course/).
- Add the block there.
- Edit the block settings, and set it to appear on every page:
- Then go into a quiz, and start an attempt, then on that page, edit the block settings again. now you get an 'Attempt quiz page' option.
Thank you very much Tim,
I was going to spend $50 for this, glad I solved it on my own, all thanks to you!
I was going to spend $50 for this, glad I solved it on my own, all thanks to you!