DisplayType Enum

A Schema.DisplayType enum value is returned by the field describe result’s getType method.

Schema

Type Field ValueWhat the Field Object Contains
ADDRESSAddress values
ANYTYPEAny value of the following types: String, Picklist, Boolean, Integer, Double, Percent, ID, Date, DateTime, URL, or Email.
BASE64Base64-encoded arbitrary binary data (of type base64Binary)
BOOLEANBoolean (true or false) values
COMBOBOXComboboxes, which provide a set of enumerated values and allow the user to specify a value not in the list
COMPLEXVALUEComplex Value Type (CVT)
CURRENCYCurrency values
DATACATEGORYGROUPREFERENCEReference to a data category group or a category unique name
DATEDate values
DATETIMEDateTime values
DOUBLEDouble values
EMAILEmail addresses
ENCRYPTEDSTRINGEncrypted string
FLOATARRAYArray of float values, reserved for future use.
IDPrimary key field for an object
INTEGERInteger values
JSONJSON format
LOCATIONLocation values, including latitude and longitude.
LONGLong values
MULTIPICKLISTMulti-select picklists, which provide a set of enumerated values from which multiple values can be selected
PERCENTPercent values
PHONEPhone numbers. Values can include alphabetic characters. Client applications are responsible for phone number formatting.
PICKLISTSingle-select picklists, which provide a set of enumerated values from which only one value can be selected
REFERENCECross-references to a different object, analogous to a foreign key field
SOBJECTAn sObject variable represents a row of data and can only be declared in Apex using the SOAP API name of the object.
STRINGString values
TEXTAREAString values that are displayed as multiline text fields
TEXTARRAYArray of text values, reserved for future use.
TIMETime values
URLURL values that are displayed as hyperlinks

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.