Digital signatures using SKUID

  • 3
  • Question
  • Updated 1 year ago
  • Doesn't Need an Answer
I have a use case where we want to sign input by drawing a signature on a iPad screen and store it in Salesforce as a SKUID-image or attachment. I did a quick search of jQuery plugins with matching functionality and found a few. If you have used any of these I'd appreciate feedback or recommendations on choice of plugin and if anyone has sample code for using with SKUID that is of course even better. These are the plugins I found:

SignaturePad
jSignature
jQuery UI Signature
Signature Pad

We might need to send out copies of the signed documents with SF email templates so storing as an image is probably better than storing a JSON object. 
Photo of Peter Baeza

Peter Baeza

  • 2,868 Points 2k badge 2x thumb

Posted 6 years ago

  • 3
Photo of Peter Baeza

Peter Baeza

  • 2,868 Points 2k badge 2x thumb
After a little bit of checking I decided on the JSignature library as it was very simple to set up and offered the feature to save the strokes in a text field making it very simple to save and reload as well as scale without having to handle a image object. I did a quiick demo of how it works. XML https://gist.github.com/anonymous/11183218 for a demo that requires a long text field on the Contact object and a static resource uploaded to SF.



It works on iPad and in Salesforce1. However I have not been able to do a Skuid Mobile version since I don't know how to replace the $(document).ready(function()  to init the custom component in Skuid mobile. A guide/tutorial on this would be helpful





Photo of Kyle Mathis

Kyle Mathis

  • 576 Points 500 badge 2x thumb
My company could really benefit from this functionality. I'm grabbed your code but I'm not certain where to get the SF static resource you're talking about. I just copied the library from jSignature's github, zipped it up, and threw it in SF. I made sure the names were the same in your page and in the Static Resource. I'm getting these errors, "element.jSignature is not a function" & "sig.jSignature is not a function". If anyone could chime in and point me in the right direction I'd be very grateful.

Thanks, 
Photo of Kyle Mathis

Kyle Mathis

  • 576 Points 500 badge 2x thumb
Figured this out.