How to customized fieds in moodle forms?

How to customized fieds in moodle forms?

by Sameera K -
Number of replies: 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.


Average of ratings: -
In reply to Sameera K

Re: How to customized fieds in moodle forms?

by Renaat Debleu -
Picture of Core developers Picture of Particularly helpful Moodlers Picture of 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...