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 a result, you should get the following:

...

  1. Save the widget.

Case of multiple widgets, same target host:

You need to ensure your two init functions:

Code Block
Kbot.get().Widgets.initRemoteConfig('widget-id-value-1')
Kbot.get().Widgets.initRemoteConfig('widget-id-value-2')

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('widetwidget-id-value-2', 'showWidget')
	}
};

As a result, you should get the following:

...

Adding the widget to a portal

...