For the complete documentation index, see llms.txt. This page is also available as Markdown.

Update signal

XCE allows Partners to load the widget in a state other than the default with custom attributes or trigger events programmatically using the update signal.

This type of features work on an as needed basis for each element, which is explained below.

Using update signal

The update signal allows you to programmatically trigger our element events.

This is useful for specific customer actions or contexts during their journey that kept them away from any direct element interaction and still being able to trigger the desired event.

isError

To programmatically set the element to an error state call signalLayer.push() with update as the value for the signal property and add the input value in the isError property as in the following example:

window.signalLayer.push({
  signal: "update",
  element: "xce-protection-offer",
  isError: true,
});

This is similar to dispatchEvent() difference being we are using XCE Signals instead.

Last updated

Was this helpful?