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
The Public Knowledge Project Support Forum is moving to

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.
Posts: 16
Joined: Thu Mar 24, 2011 8:57 am

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!


Site Admin
Posts: 910
Joined: Tue Jan 10, 2006 6:20 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 class in classes/user/form for instance. The constructor adds the necessary validation checks.


Return to “OJS Technical Support”

Who is online

Users browsing this forum: No registered users and 2 guests