Course ID as a required field

Course ID as a required field

by Acs Gabor -
Number of replies: 2

Hi all,

I would like to make the "course ID" field a required one to prevent instructors creating courses without filling this out, but it looks like there is no easy method to do this.

Is this possible with some local modification?

THanks in advance!

Gabor

Average of ratings: -
In reply to Acs Gabor

Re: Course ID as a required field

by Davo Smith -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of Peer reviewers Picture of Plugin developers

Is that the 'idnumber' field?

If so, you will need to change the code to do this. 

If you are willing to do this (and understand that this will make upgrades harder), then you need to open up course/edit_form.php, find the section that mentions idnumber, then add, after this:

$mform->addRule('idnumber', null, 'required', null, 'client');

Davo 

In reply to Davo Smith

Re: Course ID as a required field

by Acs Gabor -

Thanks Davo,


Yes, I need to change that. I was afraid, that I need to change the code itself, I tried to find an other solution (for example with the local folder), but of course it is fine.

Gabor