English
bpm.changeApprover.render.before
About 146 wordsLess than 1 minute
2026-06-04
Description: This event is triggered before the change-approver popup is rendered on the Business Flow data detail page, task landing page, or single to-do page.
This event is used on the Business Flow data detail page, task landing page, or single to-do page, and supports customizing[change-approver popup], including but not limited to the following capabilities: 1. CustomSet whether change-approver comments are required
Parameters
| Parameter | Description | Type |
|---|---|---|
| setOpinionRequired | CustomSet whether change-approver comments are required(Example) | Function |
Examples
1. setOpinionRequired
Feature Description
Customize whether comments are required when changing approvers.
Parameters
| Parameter | Description | Type |
|---|---|---|
| required | Whether required. true means required and false means not required | Boolean |
Return Value
None
Code Example
export default class Plugin {
apply() {
return [
{
event: "bpm.changeApprover.render.before",
functional: this.changeApproverRenderBefore.bind(this)
}
];
}
changeApproverRenderBefore(api) {
// Set comments as not required
api.setOpinionRequired(false);
}
}