ListField is the base class to list type acroform fields, including ComboBox and ListBox. Classes derived from ListField present users with multiple options. A user may select one or more options from fields derived from ListField.
abstract class ListField extends Field {
selected: number
readonly length: number
spellCheckEnabled: boolean
sorted: boolean
multiSelect: boolean
isComboBox(): boolean
insertItem(value: string, displayName: string): void
removeItem(index: number): void
getItem(index: number): ListItem
}
Get or set the selected list item.
Get or set the selected list item.
Readonly property, returns the number of options in the field.
Enable or disable spellchecking
Enable or disable spellchecking
Enable of disable sorting
Enable of disable sorting
Enable or sidable multiselect
Enable or sidable multiselect
isComboBox(): boolean
If derived field is a ComboBox return true, else false
isComboBox(): boolean
If derived field is a ComboBox return true, else false
insertItem(value: string, displayName: string): void
Add an item to the list of values
insertItem(value: string, displayName: string): void
Add an item to the list of values
removeItem(index: number): void
Remove an item from the list
removeItem(index: number): void
Remove an item from the list
getItem(index: number): ListItem
Get an item from the list as a ListItem