FieldList

FieldList is one these types:

FieldList
CustomList
DynamicList
StaticList

FieldList is the base interface for all field list types: CustomList, StaticList, DynamicList. All lists are made up of list elements where each element contains at least:
  • display value: the value shown to the user (usually) in a dropdown list
  • return value: the value returned when the user makes a selection from the list; the field associated with the list is set with this value

FieldList Functions

getDisplayValue FieldList.getDisplayValue( returnValue , formatted ) Returns the display value from the list that corresponds to the return value represented by returnValue, optionally formatted for the user's locale.
getDisplayValues FieldList.getDisplayValues( formatted ) Returns an array of display values for the list, optionally formatted for the user's locale.
getReturnValue FieldList.getReturnValue( displayValue ) Returns the return value from the list that corresponds to the display value represented by displayValue.
getItems FieldList.getItems( ) Returns an iterator that can be used to traverse all list items