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
What to do if you have a technical problem with OJS:
1. Search the forum
. You can do this from the Advanced Search Page
or from our Google Custom Search
, which will search the entire PKP site. If you are encountering an error, we especially recommend
searching the forum for said error.
2. Check the FAQ
to see if your question or error has already been resolved.
3. Post a question
, but please, only after trying the above two solutions. If it's a workflow or usability question you should probably post to the OJS Editorial Support and Discussion
subforum; if you have a development question, try the OJS Development
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: 848
- Joined: Tue Jan 10, 2006 6:20 am
Return to OJS Technical Support
Who is online
Users browsing this forum: Bing [Bot] and 6 guests