Configured a topaz signature pad (Model T-S460-HSB-R), copied the javascript example in the answers forum here, and installed the Topaz API. Works OK, except that the capture box still requires a mouse click before it will accept the signature. The signature appears when using the Topaz pad, but upon clicking the sign button I get an error that says "Please provide your signature" even though the Topaz input is displayed fine. You have to click in the box with the mouse, and then click sign to transfer that signature on to the form. Any suggestions?
Question
Question
Replies
Hey Kyle,
This one took a while to track down.
Technical Details
The error is caused by a check on a signature canvas variable called _isEmpty that starts out true and would normally be set to false by a function called _drawPoint. This function is invoked when drawing with your mouse but whatever method the Topaz SigWeb API uses to draw doesn't cause it to be invoked. Thus, the _isEmpty variable never gets flipped to false even though a signature has been inputted. Clicking on the canvas triggers the _drawPoint function, setting _isEmpty to false and allowing you to pass the check that is performed when the "Sign" button is pressed.
Resolution
There are two different workarounds to this.
The first effectively bypasses the check by hardcoding the value of _isEmpty to false. The downside is that entirely blank signature canvases can be submitted as valid signatures.
The second is more elegant and effectively disables the check when it detects that the SigWeb API has been invoked in the form.
I will post instructions tomorrow on how to implement each of these workarounds on the Answers thread you posted in previously since at least one other person had the same issue/question there and we can keep all the information in one place.
https://answers.laserfiche.com/questions/86327/Topaz-signature-Pads-and-Laserfiche-Forms
Could you also let me know what version of Forms you're using?
Thanks,
Sam
Awesome thanks Sam.
Forms Version 10.1.0.559
Thanks Kyle,
I tested the 2nd method locally for Version 10.1.0.559 and it works.
Please see my post on the other thread for details on implementation:
https://answers.laserfiche.com/questions/86327/Topaz-signature-Pads-and-Laserfiche-Forms#98777
If you try it, please reply back there on if it worked for you!