There are also attributes that turn on the signature line and set the text that is displayed below the line. This is what it looks like with a signature line and text below the line.Īs you can see, I have changed the background color of the signature pad, an attribute in the lightning component that allows you to do this. This is what the component looks like when it is ready to capture signatures The stored file can then be used in visual force pages that render as pdfs to create reports with signatures. The component can display signatures that have already been captured by providing the Salesforce Filename or Content Document Id. This file will be saved as an attribute that can then be referenced later. I then created a lightning component that will allow a user to draw a signature and then save it as a Salesforce file.
In this case, verification of the signature. I used a logic function to populate the line beneath the signature with a static field from SalesForce. To overcome this, I added in the specific logic required. Adding text below the signature line was one of these requirements which were not available in the Brinley version.
Once I downloaded the library and created a static resource for it, I found some requirements specific to my implementation. There is a version by Brinley Ang that had further customizations that I decided to use. I found one called jSignature that I really liked. Instead of writing something from scratch, I decided to search for available javascript/jQuery libraries to capture signatures. HTML5 canvas came to mind to capture the signature.
The stake stakeholders needed to be emailed a pdf of the signed work log which could be done in Salesforce Lightning. On a recent project, we needed to have crew fill out work logs relating to what happened during the day which their supervisor could sign electronically. Learn how you can do the same! The use case We recently overcame an issue regarding the signature capture component of Salesforce Lightning. OpFocus often encounters hurdles when completing projects and as Salesforce experts, we find solutions. Signature Capture Component – Salesforce Lightning