Returns the current field if it is in the field list. With preferFocused set, the focused field comes first.
preferFocused
Optional
The document viewer key; defaults to the active viewer.
The field list to check against; defaults to getFields().
getFields()
The field widget, or null.
null
Returns the current field if it is in the field list. With
preferFocusedset, the focused field comes first.