Outputting a Signature
There are two options to output the signature of a “signature” type variable on a subject report
Define a variable in the script window and enter the variable into the body of the report template
Use an Output.Write statement in the body of the report template
Option 1:
Click “Edit Script”
Define a variable
var signature = '<img src="' + #consent_signature.value.url + '" alt="My Image" width="150" height="150" />');
Modify the variable code and image size to output as applicable
Click Ok to close the Script window
Enter the variable into the body of the report template
<%= signature %>
Option 2:
Enter an Output.Write statement directly into the body of the report template
Example
<% Output.Write('<img src=" ' + #consent_signature.value.url + ' " alt="My Image" width="150" height="150" />'); %>
Modify the variable code and image size to output as applicable
Example of Report Template
Script Window:
var signature = '<img src="' + #consent_signature.value.url + '"/>';
var signatureWithSize = '<img src="' + #consent_signature.value.url + '" alt="My Image" width="150" height="150" />';
Report Template:
Report Output: