Revision as of 23:09, 23 October 2013 by imported>Aeric
This table shows how to format input data for the various Field Display Types in platform objects when using the Java API.
Field Display Types
|
Description
|
Auto Number
|
n/a (read only)
|
Checkbox
|
- Specify 1 for Yes/True, 0 for No/False
|
Currency
|
- Specify a value in Database Format, with no currency symbol and no separators other than the decimal point.
|
Custom Control
|
n/a
|
Date
|
- A date.
- The field definition and user's Locale Settings determine how to format the value.
|
Date time
|
- A date and time.
- The field definition and user's Locale Settings determine how to format the value.
|
Dependent Picklist
|
- Specify one of the picklist values.
- An error is thrown if the list (determined by the parent-field dependency) doesn't include that value.
|
Email Address
|
- A string containing text of the form name@domain.type. Example: friend@somewhere.com
|
File Field
|
|
Formula
|
n/a
|
Geolocation
|
A string containing a latitude and longitude, separated by a comma and a space. Ex: 37.403930662906106, -121.97971165820213
|
Global Picklist
|
- Specify a picklist value.
|
Image Field
|
|
1:N Lookup
|
- Applies to a Lookup field in a One-to-Many relationship
- Specify a record ID from the target object.
|
M:N Lookup
|
- Applies to a Lookup field in a Many-to-Many relationship
- Specify a comma separated list of record IDs from the target object.
|
Multiple Checkboxes
|
- A comma-separated list of checkbox values.
|
Multi Object Lookup
|
- The format is objectName:recordID. For example: cases:12345678
|
Multi Select Picklist & Multi Select Global Picklist
|
- A comma-separated list of picklist values.
|
Number
|
- Specify a value in Database Format, with no separators other than the decimal point.
- Possible values range -2,147,483,646 to 2,147,483,647 (-2147483646 to 2147483647).
|
Number with decimals
|
- Specify a value in Database Format, with no separators other than the decimal point.
- The number of decimal places is specified in the field definition.
|
Percentage
|
- Specify a value in Database Format, with no percent sign and no separators other than the decimal point.
- The value must be in the range 0 to 1.
- The number of decimal places is specified in the field definition.
|
Phone/Fax
|
- A string of digits, with or without formatting. (Formatting this supplied is preserved. For example, "123.456.7890". Digits entered without formatting are displayed in the default format:
- 7 digits ("1234567") displays as "123-4567".
- 10 digits "1234567890" displays as "(123) 456-7890".
- 11 digits ("12345678901") displays 1-234-567-8901
- Note:
If the string is longer than 11 digits, it is displayed as entered. In that case, it's helpful to provide the desired formatting.
|
Picklist
|
- Specify one of the picklist values.
|
Radio Buttons
|
- Specify one of the radio button values.
|
Rich Text Area
|
- A string containing text and HTML tags
- Linebreaks can be encoded using \n (newline) to make the code readable
- <wbr> and </wbr> tags are not supported, as they are problematic when switching between edit and display modes. (To prevent issues, those tags are removed before the content is displayed.)
|
Text Area
|
- A multi-line string that can contain alphanumerics (A-Z, a-z, 0-9) and special characters: / @ . - $ %
- Linebreaks can be encoded using \n (newline)
|
Text Field |
- A string containing a single line of text. Text can include alphanumerics (A-Z, a-z, 0-9) and special characters: / @ . - $ %
|
Time
|
- A time. For example, "6:50 PM".
- The field definition and user's Locale Settings determine how to format the value.
|
URL
|
|