To capture a TrustedForm snapshot of the page HTML as it exists at a particular time in the user's experience, may require departing slightly from the default method of placing and running the TrustedForm script. This is an extremely important concept to keep in mind because in certain instances you do not want to capture the content when it is first loaded by the user's browser. We suggest a method that works well in many instances:
First, wrap the standard TrustedForm script in a function that allows us to call/load the script when we need it.
Place this outside the document-ready function, and remove the original placement of the script.
Then, call loadTrustedForm() at the desired point in the user experience, when the page HTML is in the desired condition instead of when the page first loads.
It should be noted that the TrustedForm Snapshot will capture the values of page elements if they are set in the page html. This may not include user-entered data that resides only in browser memory. TrustedForm's video layer captures mouse clicks and keystrokes, which show the user's entries. To capture user-entered data in the snapshot HTML it may be necessary for your web programmer to construct a script that writes those values into the HTML prior to calling loadTrustedForm().
There are numerous ways your web developer can code this, but here's a sample jquery snippet that will do that when placed in the page's initialization routine.
This method also can capture the state of check boxes, radio buttons, and select lists (dropdowns and menus) in the Snapshot code, but because of the way that browsers render html code, those selections may still not appear visually the Snapshot.