---
schema_version: "1"
id: 83518f6c42ec8e3e9c033c12d6ee2c9f4f4907dc4b6cdbc30007351aa2f84205
title: CustomFieldDisplay
collection: legacydeveloper
version: current
locale: en-us
portal_url: https://docs.salesforce.com/legacydeveloper/current/en-us/api_meta/meta_customfielddisplay.md
canonical_url: https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/meta_customfielddisplay.htm
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3ccec81e49e85b7bf121b443afcc81ef4781466c1c3b7680955f4bfe31501ea3
description: Represents the view type assigned to product attribute custom fields. This type extends the Metadata metadata type and inherits its fullName field.
---
# CustomFieldDisplay

Represents the view type assigned to product attribute custom fields. This type extends the Metadata metadata type and inherits its fullName field.

![Important](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/images/icon_note_important.png)

#### Important

Where possible, we changed noninclusive terms to align with our company value of Equality. We maintained certain terms to avoid any effect on customer implementations.

## File Suffix and Directory Location

CustomFieldDisplay components have the suffix .customFieldDisplay.

## Version

CustomFieldDisplay components are available in API version 63.0 and later.

## Fields

<table class="featureTable sort_table" summary="">



          <thead class="thead sorted" align="left">
            <tr>
              <th class="featureTableHeader  " id="d311430e89">Field Name</th>

              <th class="featureTableHeader  " id="d311430e92">Field Type</th>

              <th class="featureTableHeader  " id="d311430e95">Description</th>

            </tr>

          </thead>

          <tbody class="tbody">
            <tr>
              <td class="entry" headers="d311430e89" data-title="Field Name">
                <span class="keyword parmname">displayType</span>
              </td>

              <td class="entry" headers="d311430e92" data-title="Field Type">CustomFieldDisplayType​ (enumeration of type string)</td>

              <td class="entry" headers="d311430e95" data-title="Description">
                <p class="p">Required. The view type of the product attribute custom fields. Values are:</p>

                <ul class="ul bulletList">
                  <li class="li">
                    <samp class="codeph nolang">ColorSwatch</samp>
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Dropdown</samp>
                  </li>

                  <li class="li">
                    <samp class="codeph nolang">Pill</samp>
                  </li>

                </ul>

              </td>

            </tr>

            <tr>
              <td class="entry" headers="d311430e89" data-title="Field Name">
                <span class="keyword parmname">fieldApiName</span>
              </td>

              <td class="entry" headers="d311430e92" data-title="Field Type">string</td>

              <td class="entry" headers="d311430e95" data-title="Description">Required. The unique name of the product attribute, for example,
                color_c.</td>

            </tr>

            <tr>
              <td class="entry" headers="d311430e89" data-title="Field Name">
                <span class="keyword parmname">isProtected</span>
              </td>

              <td class="entry" headers="d311430e92" data-title="Field Type">boolean</td>

              <td class="entry" headers="d311430e95" data-title="Description">Optional. An auto-generated value that doesn’t
                impact the behavior of the metadata
                type. The default value is <samp class="codeph nolang">false</samp>.</td>

            </tr>

            <tr>
              <td class="entry" headers="d311430e89" data-title="Field Name">
                <span class="keyword parmname">masterLabel</span>
              </td>

              <td class="entry" headers="d311430e92" data-title="Field Type">string</td>

              <td class="entry" headers="d311430e95" data-title="Description">Required. The primary label for this object.</td>

            </tr>

          </tbody>

        </table>

## Declarative Metadata Sample Definition

The following is an example of a CustomFieldDisplay component.

<?xml version="1.0" encoding="UTF-8"?>
<CustomFieldDisplay xmlns="http://soap.sforce.com/2006/04/metadata">
	<masterLabel\>cfd1</masterLabel\>
	<fieldApiName\>Color\_\_c</fieldApiName\>
	<displayType\>Pill</displayType\>
	<isProtected\>false</isProtected\>
</CustomFieldDisplay\>

The following is an example package.xml that references the previous definition.

<?xml version="1.0" encoding="UTF-8"?>
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
	<types\>
	<members\>\*</members\>
	<name\>CustomFieldDisplay</name\>
	</types\>
	<version\>63.0</version\>
</Package\>

## Wildcard Support in the Manifest File

This metadata type supports the wildcard character \* (asterisk) in the package.xml manifest file. For information about using the manifest file, see [Deploying and Retrieving Metadata with the Zip File](https://developer.salesforce.com/docs/atlas.en-us.api_meta.meta/api_meta/file_based_zip_file.htm "The deploy() and retrieve() calls are used to deploy and retrieve a .zip file. Within the .zip file is a project manifest (package.xml) that lists what to retrieve or deploy, and one or more XML components that are organized into folders.").