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:
•JavaScript API: SearchField object
•JavaScript API: SearchController object (deprecated)