Note: This release is in preview. Features described here don’t become generally available until the latest general availability date that Salesforce announces for this release. Before then, and where features are noted as beta, pilot, or developer preview, we can’t guarantee general availability within any particular time frame or at all. Make your purchase decisions only on the basis of generally available products and features.
DescribeLayoutItem Class
Namespace
Usage
For most fields on a layout, there is only one component per layout item. However, in a display-only view, the QuickAction.DescribeLayoutItem might be a composite of the individual fields (for example, an address can consist of street, city, state, country, and postal code data). On the corresponding edit view, each component of the address field would be split up into separate QuickAction.DescribeLayoutItems.
DescribeLayoutItem Methods
The following are methods for DescribeLayoutItem. All are instance methods.
getLayoutComponents()
Signature
public List<QuickAction.DescribeLayoutComponent> getLayoutComponents()
Return Value
isEditableForNew()
Signature
public Boolean isEditableForNew()
Return Value
Type: Boolean
isEditableForUpdate()
Signature
public Boolean isEditableForUpdate()
Return Value
Type: Boolean
isPlaceholder()
Signature
public Boolean isPlaceholder()
Return Value
Type: Boolean
isRequired()
Signature
public Boolean isRequired()
Return Value
Type: Boolean
Usage
This is useful if, for example, you want to render required fields in a contrasting color.