Skip to content

Commit

Permalink
Ask surname first in the User details form
Browse files Browse the repository at this point in the history
we often receive requests from countries to have the surname first in this form, we have decided to satisfy that requirement by putting surname first for ALL countries.

#6830
  • Loading branch information
Siyasanga committed Oct 1, 2024
1 parent 9e6ee79 commit 9d4f064
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions packages/client/src/forms/user/fieldDefinitions/createUser.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,38 +79,38 @@ export function userSectionFormType(): ISerializedFormSection {
title: userFormMessages.userDetails,
fields: [
{
name: 'firstNamesEng',
name: 'familyNameEng',
type: TEXT,
label: userFormMessages.firstNameEn,
label: userFormMessages.lastNameEn,
required: true,
initialValue: '',
validator: [{ operation: 'englishOnlyNameFormat' }],
mapping: {
mutation: {
operation: 'fieldToNameTransformer',
parameters: ['en', 'firstNames']
parameters: ['en', 'familyName']
},
query: {
operation: 'nameToFieldTransformer',
parameters: ['en', 'firstNames']
parameters: ['en', 'familyName']
}
}
},
{
name: 'familyNameEng',
name: 'firstNamesEng',
type: TEXT,
label: userFormMessages.lastNameEn,
label: userFormMessages.firstNameEn,
required: true,
initialValue: '',
validator: [{ operation: 'englishOnlyNameFormat' }],
mapping: {
mutation: {
operation: 'fieldToNameTransformer',
parameters: ['en', 'familyName']
parameters: ['en', 'firstNames']
},
query: {
operation: 'nameToFieldTransformer',
parameters: ['en', 'familyName']
parameters: ['en', 'firstNames']
}
}
},
Expand Down

0 comments on commit 9d4f064

Please sign in to comment.