Outputting a Signature

There are two options to output the signature of a “signature” type variable on a subject report

  1. Define a variable in the script window and enter the variable into the body of the report template

  2. Use an Output.Write statement in the body of the report template

Option 1:

  1. Click “Edit Script

  2. Define a variable

    1. var signature = '<img src="' + #consent_signature.value.url + '" alt="My Image" width="150" height="150" />');

    2. Modify the variable code and image size to output as applicable

  3. Click Ok to close the Script window

  4. Enter the variable into the body of the report template

    1. <%= signature %>

 

Option 2:

  1. Enter an Output.Write statement directly into the body of the report template

  2. Example

    1. <% Output.Write('<img src=" ' + #consent_signature.value.url + ' " alt="My Image" width="150" height="150"  />');  %>

    2. 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: