diff --git a/packages/client/src/forms/user/fieldDefinitions/createUser.ts b/packages/client/src/forms/user/fieldDefinitions/createUser.ts index 37332d9fa9..2fc6c9ee9d 100644 --- a/packages/client/src/forms/user/fieldDefinitions/createUser.ts +++ b/packages/client/src/forms/user/fieldDefinitions/createUser.ts @@ -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'] } } },