How to set required for question text?

How to set required for question text?

od Huu Bach -
Število odgovorov: 4

Hi all,

Anybody can show me the way how to remove required for question name and set required for question text? It looks like the screenshot below that I found on this link http://docs.moodle.org/25/en/Editing_Questionnaire_questions

Thanks

Povprečje ocenitev: -
V odgovor na Huu Bach

Re: How to set required for question text?

od Tim Hunt -
Slika Core developers Slika Documentation writers Slika Particularly helpful Moodlers Slika Peer reviewers Slika Plugin developers

The documentation on Moodle's forms library is http://docs.moodle.org/dev/lib/formslib.php_Form_Definition

The code you need to change is question/type/editform.php. (https://github.com/moodle/moodle/blob/a31e8115638b6410bb8e67ac9071a06c506d07fd/question/type/edit_question_form.php#L183 )

The rest is left as an exercise for the reader, but it should be pretty obvious. If not, get back to us.

V odgovor na Tim Hunt

Re: How to set required for question text?

od Joseph Rézeau -
Slika Core developers Slika Particularly helpful Moodlers Slika Plugin developers Slika Testers Slika Translators

@Tim,

Please move this discussion to the Questionnaire forum where it belongs.

Joseph

V odgovor na Joseph Rézeau

Re: How to set required for question text?

od Tim Hunt -
Slika Core developers Slika Documentation writers Slika Particularly helpful Moodlers Slika Peer reviewers Slika Plugin developers

No. The questioner is asking how to make the quiz like the questionnaire (I think). It is fine here.