Please enable JavaScript to view this site.

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

JavaScript API: SearchField object > getOptions()

Scroll Prev Next More

 

Returns the list of search options that are currently available in the search panel (CONTAINS, EQUALS, etc.).

Syntax

var options = field.getOptions();

Arguments

No arguments.

Return value

Returns the array of available search options. See the search options list to learn more.

Example

Get the list of search options using the JavaScript OnLoad event:

 

var srch = pageObj.getSearchController();
var field = srch.getSearchFields()[0];
var options = field.getOptions();

See also:

JavaScript API: SearchController object (deprecated)

About Search API

Events: JavaScript OnLoad

JavaScript API: SearchField object

JavaScript API