.setWidgetId()
(Last Updated On: April 11, 2013)
Overview

Manually set the currently-active Widget by its Widget ID. The most common use example would be offering chat buttons which are linked to separate widgets on a single page, for instance, creating one link that goes to your Help Desk widget, and another that goes to your Sales team widget. Learn how to set that up right here.

SnapEngage.setWidgetId(widgetId);


Parameters


widgetId
Type
String | (Required)
Example: SnapEngage.setWidgetId(‘xxxx-xxxx-xxxx-xxx-xxxx’);
Values
Must be a valid SnapEngage Widget ID
Description
The Widget ID for the SnapEngage Widget you would like to activate. (You can find your Widget ID(s) right here.)