You are viewing the PKP Support Forum | PKP Home Wiki

Make affiliation (membership) and country required

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

Forum rules
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 subforum.

Make affiliation (membership) and country required

Postby carlaferreira » Fri May 17, 2013 12:34 pm


We want to make the affiliation and country fields required at registration user.
Where do we have to change in source code?
Which tables?

Thank you!

Posts: 16
Joined: Thu Mar 24, 2011 8:57 am

Re: Make affiliation (membership) and country required

Postby JasonNugent » Mon May 20, 2013 2:09 pm

Hi Carla,

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], Yahoo [Bot] and 3 guests