The Forte Compliance widget will emit client-side events that provide information on when a user closes the widget. These events help you to handle post-verification flow UX as desired, based on the different Event Types listed below.

Event Types

The following Custom Events will be emitted by the Widget, and are available for you to attach listeners to on your client-side.

Event Listener Snippet

Here is an example of how you can attach an event listener on your client-side, in this case allowing you to customize UX after a successful verification (eg. “Action Unlocked!”).

window.addEventListener('ForteKYCSuccess', function(event) {
		console.log("User completed the verification flow and closed widget!");
		// Implement post-(successful)-verification flow as desired
	}
);