Are you responsible for making OJS work -- installing, upgrading, migrating or troubleshooting? Do you think you've found a bug? Post in this forum.
Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher
The Public Knowledge Project Support Forum is moving to http://forum.pkp.sfu.ca
This forum will be maintained permanently as an archived historical resource, but all new questions should be added to the new forum. Questions will no longer be monitored on this old forum after March 30, 2015.
We want to make the affiliation and country fields required at registration user.
Where do we have to change in source code?
- Posts: 16
- Joined: Thu Mar 24, 2011 8:57 am
This isn't a database change. To make fields required on forms, you need to edit the corresponding form PHP class and add a validation check for the field you want to make required. You would also want to add the necessary bits to the Smarty template so your users get a visual clue that a form is required.
See e.g. the RegistrationForm.inc.php class in classes/user/form for instance. The constructor adds the necessary validation checks.
- Site Admin
- Posts: 910
- Joined: Tue Jan 10, 2006 6:20 am
Return to OJS Technical Support
Who is online
Users browsing this forum: Google [Bot] and 3 guests