Returns the option that is currently selected in the search panel (CONTAINS, EQUALS, etc.).
Syntax
var option = field.getOption();
Arguments
No arguments.
Return value
Returns the option that is currently selected in the search panel. See the search options list to learn more.
Example
Get the search option of the search field using the JavaScript OnLoad event:
var srch = pageObj.getSearchController();
var field = srch.getSearchFields()[0];
var option = field.getOption();
See also:
•JavaScript API: SearchController object (deprecated)
•JavaScript API: SearchField object