English
flow.edit.form.bottombtn.click
About 103 wordsLess than 1 minute
2026-04-17
flow.edit.form.bottombtn.click
Description: This hook is used to intercept clicks before bottom buttons on the approval form page.
1. isIntercept
Feature Description
- Intercepts clicks before bottom buttons on the approval form page.
Parameters
| Parameter | Description | Type |
|---|---|---|
| btnInfo | Information about the clicked button | Object |
| baseCustomPluginContext | baseCustomPluginContext | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| isIntercept | Whether to intercept the default action | Boolean |
Parameter Code Example
let btnInfo = options && options.btnInfo;Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
return [
{
event: "flow.edit.form.bottombtn.click",
functional: async function (context, options) {
let btnInfo = options && options.btnInfo;
let baseCustomPluginContext = options && options.baseCustomPluginContext;
return Promise.resolve({
isIntercept: false
});
}
}
];
}
};
};