Set default Penalty for each incorrect try

Set default Penalty for each incorrect try

Johnny Abracad發表於
Number of replies: 7

I am new to Moodle (2.2.3) and so far very impressed with its features and sophistication. Other than hacking core code (which would get overwritten with updates) is there a way to set a default penalty for each incorrect try? If not, could I please add this as a feature request for a future release as it's very easy to forget this setting when adding multiple questions.

評比平均分數:Useful (1)
In reply to Johnny Abracad

Re: Set default Penalty for each incorrect try

Marcus Green發表於
Core developers的相片 Particularly helpful Moodlers的相片 Plugin developers的相片 Testers的相片

The code would be in the question type (probably the edit_form code) and so you could probably edit that.

However you might consider creating a template quiz, i.e. one to base all new quizzes from. Include in it one each of your most commonly used question types in it. You could then also save your favorite question behavior. Every time you want to create a quiz, make a copy of that by using the duplicate icon in the editing tools on the course interface.

Woops.... I have just noticed that the duplicate icon feature was introduced with Moodle 2.4 and you are running 2.2.x. Ignore all but first sentence 傷心

In reply to Johnny Abracad

Re: Set default Penalty for each incorrect try

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

I am afraid that, at the moment, the only way to do this is to hack the code. Specifically this line:

https://github.com/moodle/moodle/blob/bdd045c5ec4cca656899181224e2a99a80b20a64/question/type/edit_question_form.php#L434

You are right that change will get overwritten every time you upgrade.

What we should probably do at some time, is to introduce admin settings for most of the question options, so that you can change the default. (Like we do on admin -> Plugins -> Activity modules -> Quiz for all the quiz settings.)

評比平均分數:Useful (3)
In reply to Tim Hunt

Re: Set default Penalty for each incorrect try

Cris Fuhrman發表於

Better than editing defaults would be quiz templates! I am simulating this by making invisible, empty quizzes (configured the way I want) which I duplicate when I start a new quiz.

In reply to Tim Hunt

Re: Set default Penalty for each incorrect try

Eric Krekeler發表於

I have suggested an improvement with this topic. You can vote for it here: https://tracker.moodle.org/browse/MDL-50698

In reply to Eric Krekeler

Re: Set default Penalty for each incorrect try

Tim Hunt發表於
Core developers的相片 Documentation writers的相片 Particularly helpful Moodlers的相片 Peer reviewers的相片 Plugin developers的相片

Eric, from your feature request, it is not clear to me that you understand how this feature works.

In the issue, you use the word 'Attempt', but penalties have nothing to do with multiple quiz attempts. They only relate to "How questions behave", "Adaptve", or "Interactive with multiple tries".