Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Info

You can find the widget ID (which is 'service-now-chat' here) in the UI script (replace the host in this link with your host), search for Kbot.get().Widgets.init (string number 170).

As the Case of multiple widgets, same target host:

All you need to to have two distinct client scripts, each pointing to a different widget id.

Code Block
api.controller=function() {
  /* widget controller */
  var c = this;
	c.showKbotWidget = function() {
		Kbot.get().Widgets.execute('widet-id-value', 'showWidget')
	}
};

As a result, you should get the following:

...