English
form.submit.after
About 113 wordsLess than 1 minute
2025-12-15
This hook is called after object form data has been submitted successfully. It allows extra business actions after submission.
Parameters
| Parameter | Description | Type |
|---|---|---|
| Common parameters | See details | -- |
| objApiName | Main object apiName | String |
| recordType | Main object record type | String |
| resObject | Server-returned object data | Object |
| res | Full data returned by the server | Object |
Return Value
None
Basic Example
Perform custom business logic after successful submission
export default class Plugin {
apply() {
return [{
event: 'form.submit.after',
functional: this.formSubmitAfter.bind(this)
}]
}
// If this is a middleware plugin in a vcrm project, swap the interaction parameter positions
// formSubmitAfter(plugin, context)
formSubmitAfter(context, plugin) {
return Promise.resolve({})
}
}