English
validateDataThenGet()
About 98 wordsLess than 1 minute
2025-11-24
Triggers local data validation and returns form data if validation passes.
Parameters
| Parameter | Description | Type | Default |
|---|---|---|---|
| validateRequired | Whether to validate required master-object fields | Boolean | true |
Return Value
| Result | Description | Type |
|---|---|---|
| object_data | Master object data to be submitted | Object |
| details | Detail object data to be submitted | Object |
| related_data_list | Related object data to be submitted | Object |
Code Example
{
event: "form.render.end",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.end exec");
let {bizApi}=options;
bizApi.validateDataThenGet().then(rst=>{// Example only. Usually suitable for triggering in a custom button
console.log(rst)
}).catch(e=>{
console.log(e)
});
}
}