cancel
Showing results for 
Search instead for 
Did you mean: 
intapiuser
Community Team Member
Community Team Member
Preventing a query from executing in the `beforequery` event is as simple as assigning an empty object `{}` to the `query` event argument.
This will result in the query not being sent, and the widget rendering in its "no results" mode.
Example:
widget.on('beforequery', function(ev, args) {
  args.query = {};
});
Rate this article:
Version history
Last update:
‎03-02-2023 09:17 AM
Updated by:
Contributors