3

I am new to Moodle. My client need something special in SignUp form. I want to know how I can change code of signup form which is created through the Moodle Dashboard?

halfer
  • 19,824
  • 17
  • 99
  • 186
Nisha
  • 39
  • 1
  • 2
  • Have you checked the documentation? Are there any examples therein that could help you? Is there a theme system where you can add templates? Is [this question](https://stackoverflow.com/questions/24617350/how-to-create-a-custom-form-in-moodle) of any help? – halfer Apr 28 '16 at 07:19

2 Answers2

3

Option 1 (for developers). Create your own authentication plugin https://docs.moodle.org/dev/Authentication_plugins and use it instead of standard auth_email for self-registration

Option 2 (for administrators). Create custom profile fields and add them to the registration form. This does not require developer but might not be flexible enough.

Marina
  • 491
  • 3
  • 9
1

You can change signup form in [your Moodle www dir]/login/signup_form.php

Maybe Form API docs will be helpful for you.

SkyHigh
  • 19
  • 1
  • 1
    very bad practice to do core hacks, especially when it is possible to do this as a plugin – Marina May 12 '16 at 03:10
  • You are right, at most cases it's bad practice which has only one advantage for beginner developer - maximum problem solving speed. And of course it may lead to some problems in project future. – SkyHigh May 16 '16 at 17:24