Manually Triggering TrustedForm (delayed execution)

The following article covers technical guidance to trigger the TrustedForm script (thus collecting environment data and taking the DOM snapshot) by a specific event on your web page or flow. We suggest you use this method only if the video replay layer of the TrustedForm Snapshot is not capturing keystroke input or if for some other reason you need to delay execution of the TrustedForm script.

This article assumes you're familiar with HTML, Javascript, and jQuery.

By wrapping the TrustedForm script in a function, you make the script available to be called by a specific action later - simply trigger the function:

function loadTrustedForm() {
// Get the TrustedForm script at 

As stated before, triggering the script triggers the snapshot, so you may want to coordinate this function to coincide with the user completing all required fields, or with the loading of a pop-up window that shows the disclosure language.

It is important to note that you need to give the TrustedForm script time to load and populate the TrustedForm Cert field. Usually, this happens in under a second. The main caveat here is that you should not try to call the TrustedForm script AND submit your form at the same time - you'll end with up missing certificates. For best results you'll want to trigger the TrustedForm script with one action (an onblur of the last element, clicking a button, etc) and then trigger the submission of the form with a separate action.

Was this article helpful?
8 out of 8 found this helpful
Have more questions? Submit a request


You must be logged in to comment.