Newer Version Available
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
isEditable()
Signature
public Boolean isEditable()
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.