Category / Section
How to Add a Web Widget to the Customer Portal
Published:
The custom JS option allows you to add a widget to your BoldDesk customer portal. To achieve this,
Go to Admin > Customer Portal > Customization and paste the following custom JS code.
Custom JS code
(function () {
var v = document.createElement('script');
v.src = "https://{{yourdomain}}/widget/{{widgetId}}";
v.type = "text/javascript"
document.head.append(v);
})();
- You can add your domain in the place of {{yourdomain}}. For ex: support.bolddesk.com
- Replace the placeholder with the widget ID in the code.
Where to find the widget ID?
Go to Admin > Web Widgets. Click on the widget you want to add and copy the widget ID from the URL. Refer to the following screenshot.
Pasting the custom JS codes
To learn where to paste the above custom JS codes, refer to this article.