Please enable JavaScript to view this site.

Navigation: Advanced topics > Programming topics > JavaScript API > SearchField object > Methods

JavaScript API: SearchField object > getOption()

Scroll Prev Next More

 

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)

About Search API

Events: JavaScript OnLoad

JavaScript API: SearchField object

JavaScript API

 

Created with Help+Manual 7 and styled with Premium Pack Version 3 © by EC Software