English
flow.edit.form.render.befor
About 108 wordsLess than 1 minute
2025-09-22
This hook is used before the Business Flow form is rendered, and can configure form buttons and other actions.
Description: This hook is used before the Business Flow form is rendered, and can configure form buttons and other actions.
Parameters
| Parameters | Description | Type |
|---|---|---|
| pageData | Page data | Object |
Code Example
module.exports = function (context, pluginService, pluginParam) {
return {
apply() {
let self = this;
return [{
/**
* Set externally injected methods exposed to the plugin
*/
event: "flow.edit.form.render.befor",
functional: async function (context, options) {
return Promise.resolve({
// If the return value is true, force navigation to the form page
pluginHookApi: {
// Customize secondary buttons
updateBottomBtnList: function (btnList,pagedata) {
}
}
});
}
}]
}
}
}