Please enable JavaScript to view this site.

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

JavaScriptAPI: SearchController object > toggleCriteria()

Scroll Prev Next More

 

Deprecated

SearchController object methods are deprecated, we recommend using Search API instead.

 

Hides or shows the criteria block on the search panel, sets the values of the search criteria.

Syntax

srch.toggleCriteria(value);

Arguments

value

one of the values listed below:

 

Value

Description

all

Sets the search criteria to the "all" value.

any

Sets the search criteria to the "any" value.

hide

Hides the criteria block.

show

Shows the criteria block.

Return value

No return value.

Example

Show the criteria block using the JavaScript OnLoad event:

 

var srch = pageObj.getSearchController();
srch.toggleCriteria('show');

See also:

About Search API

JavaScript API: SearchField object

Events: JavaScript OnLoad

JavaScript API: SearchController object (deprecated)

JavaScript API

 

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