/
Outputting a Signature

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:

 

Related content

Additional outputs on a subject report
Additional outputs on a subject report
More like this
Tips in Report Template Scripts
Tips in Report Template Scripts
More like this
Output Checkbox Text
Output Checkbox Text
More like this
Examples of outputting date, text, or checkbox variable values
Examples of outputting date, text, or checkbox variable values
More like this
Sign Variable Groups
Sign Variable Groups
More like this
Creating Report Templates (through v3.4)
Creating Report Templates (through v3.4)
More like this