Adding Custom fields while Course Creation in Moodle

Re: Adding Custom fields while Course Creation in Moodle

door Gareth J Barnard -
Aantal antwoorden: 3
Foto van Core developers Foto van Particularly helpful Moodlers Foto van Plugin developers
Als antwoord op Gareth J Barnard

Re: Adding Custom fields while Course Creation in Moodle

door Sarthak Singh -

Hi Gareth,

We appreciate your response. However our project requires that there should be a new feature , visible to the user, such that new custom fields are available to be created and filled.

The solution provided by you requires changes in moodle database. We can't do that. So please if you have any solution such that we could directly introduce an option of introducing custom fields while creating course only (i.e., on front-end), that would be quite appreciable.

We urgently require the answer.

Gemiddelde van de beoordelingen:  -
Als antwoord op Sarthak Singh

Re: Adding Custom fields while Course Creation in Moodle

door Gareth J Barnard -
Foto van Core developers Foto van Particularly helpful Moodlers Foto van Plugin developers

Do you mean any user, not just course creators / editing teachers?

And the solution provided only requires PHP changes, the database is taken care of by new records in existing tables.

And... Silly question, but how do you intend to implement persistence without the database?  Flat file?

Gemiddelde van de beoordelingen:  -
Als antwoord op Gareth J Barnard

Re: Adding Custom fields while Course Creation in Moodle

door Sarthak Singh -

Hi Gareth,

Actually the options provided in the "Course Format" are not sufficient enough, as per our requirements. So for PHP changes, right now, we are trying to apply a patch, provided earlier by a moodle user. This link is as follows:


 We will communicate to you about any further queries, regarding the same.
Thanks !!!
Gemiddelde van de beoordelingen:  -