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.

Syntax

var ctrl = field.getControl();

Arguments

No arguments.

Return value

Returns the control object.

Example

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