getSearchQuery (Client API reference)

Gets the text used as the search criteria for the knowledge base management control.

Control types supported

knowledge base search control

Syntax

var kbSearchControl = formContext.getControl("<name>");
var searchQuery = kbSearchControl.getSearchQuery();

Return Value

Type: String

Description: The text of the search query.

setSearchQuery