Please enable JavaScript to view this site.

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

JavaScript API: SearchField object > remove()

Scroll Prev Next More

 

Removes a field from the search panel.

Syntax

field.remove();

Arguments

No arguments.

Return value

No return value.

Example

Remove the search field from the search panel using the JavaScript OnLoad event:

 

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

See also:

JavaScript API: SearchController object (deprecated)

About Search API

Events: JavaScript OnLoad

JavaScript API: SearchField object

JavaScript API