Setting a Default Contributor Country in OJS 3.4 Submission Wizard

Describe the issue or problem
Set default country for the “Country” field in the contributor form

  • Go to a new submission.
  • Click on “Add Contributor” (or the equivalent action to open the contributor form).
  • Observe the “Country” dropdown field within the contributor metadata form.
  • The “Country” field is blank by default. We would like it to default to my country [Your Journal's Common Country].

What application are you using?
3.4.0-9

Additional information
I understand that OJS serves a global community and making a country field default might not suit all journals. However, an optional setting to enable a default country would be very beneficial for many.

Hi @huynhnguyenthuan

This is probably more suited to the “Feature Request” category here on the forum, so I altered the category.

Could you please edit your first post following this template? You have many of the same elements there, it just needs to be adjusted to match this structure.

Describe the problem you would like to solve
Example: Our editors need a way to […]

Describe the solution you’d like
Tell us how you would like this problem to be solved.

Who is asking for this feature?
Tell us what kind of users are requesting this feature. Example: Journal Editors, Journal Administrators, Technical Support, Authors, Reviewers, etc.

Additional information
Add any other information or screenshots about the feature request here.

You can use this post as a reference.

Thank you,

Roger
PKP Team

1 Like

Hello @rcgillis ,
I see in pkp\templates\common\userDetails.tpl this line have defaultValue=“”
{fbvFormSection for="country" title="common.country"}{fbvElement type="select" label="common.country" name="country" id="country" required=$countryRequired defaultLabel="" defaultValue="" from=$countries selected=$country translate="0" size=$fbvStyles.size.MEDIUM}{/fbvFormSection}
I have edited to ‘VN’ but it dont work

@rcgillis
https://github.com/pkp/pkp-lib/pull/11467