Skip to content
TruCom Developers
JavaScript SDK
DocumentationCustomization
JAVASCRIPT SDK

Privacy and consent

Choose how privacy links and pre-chat consent appear while retaining workspace requirements.

Requirement precedence

A runtime requirement can strengthen saved workspace consent. Once required for a visitor session, it cannot be turned off by a later client configuration; reset the session if the requirement changes. The backend validates consent when starting a conversation. Required saved pre-chat fields, allowed departments and upload rules remain authoritative.

Hide a widget on a page

hideWidget hides the installation. hideLauncher only hides the default button and allows your custom button to open the panel. Device-specific flags apply to the corresponding device category.

JavaScript
await TruComWidget.configure({ hideWidget: true });
// When the page should show support again:
await TruComWidget.show();

Account changes

Call reset on logout or account switching. Session reset is different from deleting a customer or account. It clears this visitor’s displayed history and local draft/outbox state and revokes the active widget session.

TruCom DevelopersSupport that belongs in your product.

Search documentation