The <search> tag implements search functionality.
Attribute
Type
Mandatory
Description
Specify a path to a page in the portal structure.
Example:
itemPage="page" returns a URL of the search results page containing the page word:
https://your_instance_url/page?searchQuery
Specify a function called when clicking the Search button. Set the attribute value to the custom s_widget_custom method created in the client script.
Define a placeholder for the search field.
Specify the search bar size. Available values:
Define a custom title instead of the default one.
To use a custom title, set the showTitle attribute to true first.
Specify the number of first matches to display in the search autosuggestion.
<search tsGroupId="157018693719021198" top="3" size="lg" itemPage="page" itemView="Service Portal RO" showTitle="true" onChange="s_widget_custom.search(arguments[0]);">
The template above displays the following search field on the page: