Expose a public JavaScript API to trigger widget search programmatically from the host page
N
Nutritious Wildcat
The widget should expose a supported, documented JavaScript method accessible from the host page that allows external code to trigger a search with a dynamic string at runtime. For example: window.document360('search', 'query term'). Currently all command variants passed via the widget's global function are accepted silently but have no effect on the widget panel, and there is no documented public API surface for this.
Use case: A media and services enterprise embedding the widget inside a service desk platform needs to pass the active case title to the widget via JavaScript on page load — so agents see relevant KB results automatically when opening a ticket. A clean, documented JS API would allow this without relying on any undocumented internals.
How this helps users: Gives developers a supported, stable integration point for passing dynamic context into the widget from the host application. Particularly valuable for service desk, CRM, and enterprise platform integrations where the host app has context the widget should act on automatically.
Log In