Please enable JavaScript to view this site.

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

JavaScript API: SearchField object > removeOption()

Scroll Prev Next More

 

Removes an option from the list of search options in the search panel (CONTAINS, EQUALS, etc.).

Syntax

field.removeOption(option);

Arguments

option

one of the available search options with the PHPRunner.search.options prefix. Example: PHPRunner.search.options.MORE_THAN, PHPRunner.search.options.NOT_EMPTY.

Return value

No return value.

Example

Remove the EQUALS option from the list of search options using the JavaScript OnLoad event:

 

var srch = pageObj.getSearchController();
var field = srch.getSearchFields()[0];
field.removeOption(Runner.search.options.EQUALS);

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