diff --git a/src/app/features/config/form-cfgs/sync-form.const.ts b/src/app/features/config/form-cfgs/sync-form.const.ts index eab3c16094..dda76b86f4 100644 --- a/src/app/features/config/form-cfgs/sync-form.const.ts +++ b/src/app/features/config/form-cfgs/sync-form.const.ts @@ -125,6 +125,15 @@ export const SYNC_FORM: ConfigFormSection = { required: true, label: T.F.SYNC.FORM.LOCAL_FILE.L_SYNC_FILE_PATH, description: T.F.SYNC.FORM.LOCAL_FILE.L_SYNC_FILE_PATH_DESCRIPTION, + change: (field) => { + const lastChar = field?.model.syncFilePath?.trim().slice(-1); + if (lastChar === '/' || lastChar === '\\') { + field.formControl?.setValue( + (field.model.syncFilePath += 'SP_SYNC_FILE.json'), + ); + field.formControl?.updateValueAndValidity(); + } + }, }, }, ],