Skip to main content

BeforeCreateSaveFunction

BeforeCreateSaveFunction = (params) => Promise<{ error?: string | null; newRecordId?: string; ok: boolean; redirectToRecordId?: string; }>

Parameters

ParameterTypeDescription
params{ adminforth: IAdminForth; adminUser: AdminUser; extra?: HttpExtra; record: any; resource: AdminForthResource; response: IAdminForthHttpResponse; }-
params.adminforthIAdminForthAdminforth instance.
params.adminUserAdminUserAdmin user performing the action.
params.extra?HttpExtra-
params.recordanyRecord data to create.
params.resourceAdminForthResourceResource info.
params.responseIAdminForthHttpResponseHTTP response object. Deprecated Since 1.2.9. Will be removed in 2.0.0. Use extra.response instead.

Returns

Promise<{ error?: string | null; newRecordId?: string; ok: boolean; redirectToRecordId?: string; }>