Is there a way to remove the first button "Make the Test" from a quiz?

Is there a way to remove the first button "Make the Test" from a quiz?

by Mahomed Ouedraogo -
Number of replies: 4

The first time to run a test on a quiz, when you click on the link of the quiz to access it, there is still a window as indicated by my capture: "do the test" !!!

How can I remove this window?

I think it can be in "mod / quiz / renderer.php" but on which part of the code?

Version moodle: 3.2

Thanks for the help you can provide

Attachment faire_test.gif
Average of ratings: -
In reply to Mahomed Ouedraogo

Re: Is there a way to remove the first button "Make the Test" from a quiz?

by Jon Bolton -
Picture of Particularly helpful Moodlers Picture of Testers
In reply to Jon Bolton

Re: Is there a way to remove the first button "Do the Test" from a quiz?

by Mahomed Ouedraogo -

Hello!

Yes thank you for your answer! I realized that I could not post a discussion in another discussion, that's why I took up the same question here, to make a separate discussion!

Someone could give me ideas of the code in which can this change?

Thank you

In reply to Mahomed Ouedraogo

Re: Is there a way to remove the first button "Make the Test" from a quiz?

by Mahomed Ouedraogo -

Hello !!!

Maybe my question is not clear!

I would like to modify the code in the quiz module in order to go directly to the quiz page without going through the first page that still asks the question "Do the test" !!!

How and in which file should I change the code to skipped this step?

In reply to Mahomed Ouedraogo

Re: Is there a way to remove the first button "Make the Test" from a quiz?

by Tim Hunt -
Picture of Core developers Picture of Documentation writers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

The problem is that Moodle requires that every activity has a page .../view.php, and the page with the 'Attempt quiz' button is the Quiz's view.php page.

So, it is probably not feasible to remove it. Probably what you can do id to add some JavaScript, which, as soon as the page has loaded, automatically simulates clicking the button.