DisplayType Enum
A Schema.DisplayType enum value is returned by the field describe result's getType method.
Namespace
Type Field Value | What the Field Object Contains |
---|---|
ADDRESS | Address values |
ANYTYPE | Any value of the following types: String, Picklist, Boolean, Integer, Double, Percent, ID, Date, DateTime, URL, or Email. |
BASE64 | Base64-encoded arbitrary binary data (of type base64Binary) |
BOOLEAN | Boolean (true or false) values |
COMBOBOX | Comboboxes, which provide a set of enumerated values and allow the user to specify a value not in the list |
COMPLEXVALUE | Complex Value Type (CVT) |
CURRENCY | Currency values |
DATACATEGORYGROUPREFERENCE | Reference to a data category group or a category unique name |
DATE | Date values |
DATETIME | DateTime values |
DOUBLE | Double values |
Email addresses | |
ENCRYPTEDSTRING | Encrypted string |
FLOATARRAY | Array of float values, reserved for future use. |
ID | Primary key field for an object |
INTEGER | Integer values |
JSON | JSON format |
LOCATION | Location values, including latitude and longitude. |
LONG | Long values |
MULTIPICKLIST | Multi-select picklists, which provide a set of enumerated values from which multiple values can be selected |
PERCENT | Percent values |
PHONE | Phone numbers. Values can include alphabetic characters. Client applications are responsible for phone number formatting. |
PICKLIST | Single-select picklists, which provide a set of enumerated values from which only one value can be selected |
REFERENCE | Cross-references to a different object, analogous to a foreign key field |
SOBJECT | An sObject variable represents a row of data and can only be declared in Apex using the SOAP API name of the object. |
STRING | String values |
TEXTAREA | String values that are displayed as multiline text fields |
TEXTARRAY | Array of text values, reserved for future use. |
TIME | Time values |
URL | URL values that are displayed as hyperlinks |
Usage
For more information, see Field Types in the Object Reference for Salesforce. For more information about the methods shared by all enums, see Enum Methods.