How to customized fieds in moodle forms?

How to customized fieds in moodle forms?

av Sameera K -
Antall svar: 1

Hello,


I want to customize moodle course/edit_form.php file and add some more fields and remove some existing fields. Is this possible to do without changing core files?

I followed this article but didn't find anything helpful https://docs.moodle.org/dev/Form_API.


Gjennomsnittlig vurdering: -
Som svar til Sameera K

Re: How to customized fieds in moodle forms?

av Renaat Debleu -
Bilde av Core developers Bilde av Particularly helpful Moodlers Bilde av Plugin developers

If you want to modify a course/edit_form without changing core files, you can create a custom enrol plugin where you add/modify/hide form elements in the course_edit_form function. Every course with this enrolment enabled will show your changes...