I've been having an issue with saving signatures through multiple process stages. I'm currently using modern designer on Laserfiche 11. I have a form that on submission we need to carry along the signature throughout the review stages. After some research the main thread that got me moving in the right direction was this:
https://answers.laserfiche.com/questions/216947/show-signature-image-inside-html
I figured since the signature variable is save and preserved when moving between stages that I could just grab it and put it into a custom html field.
using this code snippet from the above answer and tweaking it a bit better fit my scenario; I ended up with this:
I had it set to onFieldChange for testing purposes, but this takes the image generated from the signature and appends it to a preexisting block of custom html. The custom html block looks like this:
This whole setup works as intended as once the user signs, that signature data is grabbed and placed within the div. My initial assumption was that would save the html and would continue onto the next process stage. Also note following the suggestion from this thread:
I set the form to read-only, or at least I think I do. I'm not quite sure how or when the form needs to be set to read-only, but from my research I know that any change can only be saved when the form is in read only. Of course, this was the first thing I tried before going down this path, along with following the suggestion of this thread:
https://answers.laserfiche.com/questions/64696/Forms-92-Signature-Not-Carrying-Through-Steps
Keeping the field as read-only or moving over to a read-only field does not maintain it through steps. I tried to disable it using field rules but that didn't work and setting it to read-only after the fact also does not work. I know through the process monitor that the variable is populated with the signed signature, but I have not had any luck in even touching it after the default stage. If anyone has struggled with this or has any suggestions that would be appreciated. I believe it's right there and the main hurdle is finding a way to save the custom html after its populated.
Alternatively I noticed that the signature is signed, and populated when monitoring the variables of the submission.
Is there a way to make use of this variable in the review stage or at least in the repository saving step.