By default, Laserfiche does not preserve signatures as the form progresses through subsequent user tasks. This means that if a signature is mandatory, the reviewer will be required to sign the document, but the final saved form will not bear the original signature. This becomes problematic when the form is routed through multiple review phases, as each user must sign and the final saved version will only bear the signature of the final person.
To address this issue and ensure that the original signature is preserved, you can follow these steps:
1. Only display the signature panel on the first submission.
2. Set up a custom HTML element to display the signature image on subsequent user task stages.
3. Display the signature image on the subsequent stages.
To achieve this, you can set a rule on the original submission to only show the signature field if the Process Step is not a Message Start Event. This will hide the signature box after the first sign off.
To display the signature image, you will need to create a custom HTML element and paste the provided code into the code area. This code retrieves the signature image from the previous user task and displays it using an `img` tag in the custom HTML element.
By implementing these steps, you can ensure that the original signature is preserved and displayed throughout the different user task stages. Please note that you may need to modify the code based on your specific implementation and environment.
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>Display Image</title>
<!-- gets the original signature {/dataset/Signature} -->
<!-- Replace 'data:image/png;base64,...' with the actual image data from the variable -->
<img src="{/dataset/Signature}" alt="Signature is displayed on save">
Then add a rule on the custom HTML element to show when Process Step is not Message Start Event