Skip to main content
Version: 2.1.4

ISaveListFormConfiguration

3p-core v2.1.4


3p-core / ISaveListFormConfiguration

Interface: ISaveListFormConfiguration<PreSaveResult>

Configuration options for the SaveListForm function, allowing complete control over the SharePoint list form save pipeline.

Type Parameters

PreSaveResult

PreSaveResult

The optional result from onPreSave, passed to later steps.

Properties

PropertyTypeDescription
folderPath?stringOptional target folder path for saving the list item.
forceOverrideConcurrentSave?booleanIf true, forces the list item to be saved even if concurrent updates are detected.
getListItemUpdates?(listItem, preSaveResult?) => anyOptional transformation function that returns additional updates to merge into the final list item before saving.
listFormContextIListFormContextThe list form context providing form state, validation, and list saving logic.
onError?(error) => voidOptional error handler for any unhandled exceptions during the save process.
onLoadingChanged?(visible) => voidOptional loading handler to show or hide a spinner or overlay.
onPreSave?(listItem) => PreSaveResult | Promise<PreSaveResult>Callback executed before saving the list item. Can return additional data that is passed through the pipeline.
onSaveListItem?(listItem, preSaveResult?) => Promise<IListItem>Custom save function to override the default saveListItem logic.
onSaveSucceeded?(savedListItem, preSaveResult?) => void | Promise<void>Callback invoked after the list item and attachments are successfully saved.
onValidate?(listItem) => booleanOptional callback to perform custom validation logic. Return false to prevent saving.
skipValidation?booleanIf true, bypasses the default validation step.