English
list.confirm.before
About 98 wordsLess than 1 minute
2025-12-16
Triggered before confirming selection on the selectable list page. At this point, you can modify or intercept the result data returned by confirmation.
Parameters
| Parameter | Description | Type |
|---|---|---|
| pageResult | Page return result, including the selected data list and object describe information | Object |
Return Value
| Parameter | Description | Type |
|---|---|---|
| consumed | Whether to intercept subsequent confirmation logic | Boolean |
| pageResult | Modified page return result | Object |
Code Example
Intercept confirmation
{
event: "list.confirm.before",
functional: function (pluginExecResult, options) {
return { consumed: true };
}
}Modify return result
{
event: "list.confirm.before",
functional: function (pluginExecResult, options) {
options.pageResult.objectDataList.forEach(item => {
item.customField = "custom data";
});
return { pageResult: options.pageResult };
}
}