English
showColumns
About 158 wordsLess than 1 minute
2025-12-15
bizApi.showColumns(fieldApiNames, objectApiName, recordType)
Shows columns of detail-object table fields
Parameters
| Parameter | Description | Type | Required |
|---|---|---|---|
| fieldApiNames | Detail-object field apiNames | Array | Yes |
| objectApiName | Detail object apiName | String | Yes |
| recordType | Detail-object business type | String | No |
Return Value
None
Basic Example
Show fields for all business types of a detail object
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRendereAfter.bind(this)
}]
}
formRendereAfter(context, plugin) {
context.bizApi.showColumns(['name', 'field_Vlv1H__c'], 'object_db3ck__c');
}
}Show fields for a specific business type of a detail object
export default class Plugin {
apply() {
return [{
event: 'form.render.after',
functional: this.formRendereAfter.bind(this)
}]
}
formRendereAfter(context, plugin) {
context.bizApi.showColumns(['name', 'field_Vlv1H__c'], 'object_db3ck__c', 'default__c');
}
}Notes
1. This method cannot modify the state of required fields
In object form plugins, the required attribute of a field usually has a high weight and priority. This means required fields are critical to form integrity and validity, so their state cannot be bypassed or modified simply by showing them.
