---
schema_version: "1"
id: 60329586a0320b9a889496d2a727e427d38ec1058dfd4bd1d7df72bf492352e5
title: DescribeLayoutItem Class
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/apexref/apex_class_quickaction_describelayoutitem.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 571b4b2703638e2129178230f967729a5315ead2a5b92d11204a1c0060ea63a2
description: Represents an individual item in a QuickAction.DescribeLayoutRow.Returns the label text for this item.Returns a list of QuickAction.DescribeLayoutComponents for this item.Indicates whether this item can be edited for new (true) or not (false).Indicates whether this item can be edited for update(true) or not (false).Indicates whether this item is a placeholder (true) or not (false). If true, then this item is blank.Indicates whether this item is required (true) or not (false).
---
# DescribeLayoutItem Class

Represents an individual item in a QuickAction.DescribeLayoutRow.

## Namespace

[QuickAction](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_namespace_QuickAction.htm "The QuickAction namespace provides classes and methods for quick actions.")

## 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.

- **[getLabel()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_getLabel)**  
    Returns the label text for this item.
- **[getLayoutComponents()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_getLayoutComponents)**  
    Returns a list of QuickAction.DescribeLayoutComponents for this item.
- **[isEditableForNew()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_isEditableForNew)**  
    Indicates whether this item can be edited for new (true) or not (false).
- **[isEditableForUpdate()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_isEditableForUpdate)**  
    Indicates whether this item can be edited for update(true) or not (false).
- **[isPlaceholder()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_isPlaceholder)**  
    Indicates whether this item is a placeholder (true) or not (false). If true, then this item is blank.
- **[isRequired()](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutitem.htm#apex_QuickAction_DescribeLayoutItem_isRequired)**  
    Indicates whether this item is required (true) or not (false).

### getLabel()

Returns the label text for this item.

#### Signature

public String getLabel()

#### Return Value

Type: [String](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_string.htm#apex_methods_system_string "Contains methods for the String primitive data type.")

### getLayoutComponents()

Returns a list of QuickAction.DescribeLayoutComponents for this item.

#### Signature

public List<QuickAction.DescribeLayoutComponent> getLayoutComponents()

#### Return Value

Type: [List](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_list.htm#apex_methods_system_list "Contains methods for the List collection type.")<[QuickAction.DescribeLayoutComponent](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_class_quickaction_describelayoutcomponent.htm#apex_class_quickaction_describelayoutcomponent "Represents the smallest unit in a layout—a field or a separator.")\>

### isEditableForNew()

Indicates whether this item can be edited for new (true) or not (false).

#### Signature

public Boolean isEditableForNew()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### isEditableForUpdate()

Indicates whether this item can be edited for update(true) or not (false).

#### Signature

public Boolean isEditableForUpdate()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### isPlaceholder()

Indicates whether this item is a placeholder (true) or not (false). If true, then this item is blank.

#### Signature

public Boolean isPlaceholder()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

### isRequired()

Indicates whether this item is required (true) or not (false).

#### Signature

public Boolean isRequired()

#### Return Value

Type: [Boolean](https://developer.salesforce.com/docs/atlas.en-us.apexref.meta/apexref/apex_methods_system_boolean.htm#apex_methods_system_boolean "Contains methods for the Boolean primitive data type.")

#### Usage

This is useful if, for example, you want to render required fields in a contrasting color.