Please enable JavaScript to view this site.

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

JavaScript API: SearchField object > getControl()

Scroll Prev Next More


Returns the control object of the search field.


var ctrl = field.getControl();


No arguments.

Return value

Returns the control object.


Get the control object of the search field using the JavaScript OnLoad event:


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

See also:

JavaScript API: SearchController object (deprecated)

About Search API

JavaScript API: SearchField object

Events: JavaScript OnLoad

JavaScript API