ِadding a custom field in user registration page

ِadding a custom field in user registration page

by NAMA Coconut -
Number of replies: 0

hello guys,

I am running moodle 3.8 , in our system the admin should register the student, admin need to add additional field like "school" for example, my problem is that when he adds the field it shows an option if he wants to make it mandatory or not, when he make it mandatory it doesn't show the restriction on  manual registration page, it is always optional for the admin, 

can I add a new field for the registration form itself from inside the code? could someone advice about that


thank you.

Average of ratings: Useful (1)