We are building a Joomla 3.x component for school management where each student will have a user account to login and manage their dashboards.

The problem is not all students will have email address and in Joomla email is mandatory for a user.

I am looking for a decent way how to bypass this without hacking any core functionality.

  • Hahaha, exact same problem here. We need a school module. :D
    – inf3rno
    Feb 12 '17 at 16:27

Your best bet is to do this with a user plugin that can both remove the unnecessary field from the form and fill the email in automatically with something autogenerated to get past the requirement.

Joomla Registration: Remove unneeded fields should help you with the basics of creating a user plugin and removing the email fields.

Likewise, if you use my answer to that question, you can add in an automated email address in onUserBeforeSave which should get the record past the model's validation and store the user "without" an email.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.