I am using OJS 3.4.0-9.
I would like to force users to fill in their phone number when creating an account, so that the phone number becomes a mandatory/required field on the registration form (or when adding a new user from the admin/editor side).
At the moment, the phone number field is optional and many users leave it empty.
My questions are:
Is there a built-in setting in OJS 3.4.0-9 to make the phone number required during registration?
If not, what is the recommended way to do this?
Editing the registration form template?
Overriding the form validation in a custom plugin?
Any example code or documentation I can follow?
Any guidance, example, or link to official documentation/tutorial would be very helpful.
Thank you.
You can add a Phone Number field to the OJS 3.4 registration form and make it mandatory by updating two core files — one in PHP and one in the Smarty template. The steps are outlined below.