English
assertInLayouts
About 65 wordsLess than 1 minute
2025-12-15
bizApi.assertInLayouts(fieldName, objApiName, recordType)
Checks whether a field exists in the layout
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| fieldName | Field apiName | String | Yes |
| objApiName | Detail object apiName | String | Yes |
| recordType | Business type | String | Yes |
Return Value
None
Basic Example
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRendereAfter.bind(this)
}]
}
formRendereAfter(context, plugin) {
const flag = context.bizApi.assertInLayouts('field_Vlv1H__c', 'object_K2z2d__c', 'default__c');
}
}