General developer forum

How to customized fieds in moodle forms?

 
Picture of Sameera K
How to customized fieds in moodle forms?
 

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: -
Renaat
Re: How to customized fieds in moodle forms?
Core developersParticularly helpful MoodlersPlugin 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...



 
Average of ratings: -