English
focusShowMasterFieldError
About 98 wordsLess than 1 minute
2025-09-22
Immediately focuses the specified master-object field and shows a red prompt message below the field. The prompt is automatically cleared when the field value changes, and it does not block submission.
Parameters
| Parameter | Description | Type |
|---|---|---|
| apiName | apiName of the master-object field | String |
| msg | Prompt message text | String |
| showToast | Whether to also show a toast message, useful when some fields are not displayed | Boolean |
Return Value
None
Code Example
{
event: "form.render.end",
functional: function (pluginExecResult, options) {
console.log("custom plugin: form.render.end exec");
let {bizApi}=options;
bizApi.focusShowMasterFieldError("name","Name cannot be empty",true);
}
},