BrightSIGN Implementation Guide
BrightSIGN Implementation Guide
Version 3.0
1 Overview
2 Configuration
3 Usage
3.1 Aura Lightning Component/Application
3.2 Lightning App Builder
3.3 Community Builder
3.4 Lightning Flow
4 Extending
6 Troubleshooting
1 Overview
Signature Capture is now BrightSIGN!
BrightSIGN is a Lightning Component that allows a user to draw their signature into an HTML5
canvas element via a browser or mobile device, convert the captured drawing to an image and
store that image against a Salesforce record.
The behaviour of BrightSIGN is configurable via attributes which are available directly for
programmatic applications, and as design attributes for low/no-code tools.
3 Usage
<BGSIGCAP:SignatureCapture
recordId="{!v.recordId}"
startMsg="Click the button to get started"
enterMsg="Please sign below"
completeMsg="Here is the signature you entered"
width="50%"
height="200px"/>
3.2 Lightning App Builder
BrightSIGN appears in the list of available components in the app builder, in the Custom - Managed
section at the bottom of the Components list of the left hand side of the page.
Dragging the component onto the canvas displays the component with the default attribute values.
The values may be changed by clicking on the component, which opens the attribute editor on the
right hand side of the page.
If the component is added to a Record page, the Salesforce Platform will automatically populate
the recordId attribute with the ID of the record being viewed. For Home or Application pages,
the record id will need to be manually entered.
3.3 Community Builder
BrightSIGN appears in the list of available components in the app builder, in the Custom - Managed
section at the bottom of the Components list of the left hand side of the page.
Dragging the component onto the builder canvas displays the component with the default attribute
values:
Clicking on the component opens the attribute editor on the right hand side of the page:
If the component is added as a direct descendant of a Record page, the Salesforce Platform will
automatically populate the recordId attribute with the ID of the record being viewed. If nested
inside another component in a Record page (a tab, for example) then you will need to specify the
recordId attribute as : {!recordId}
3.4 Lightning Flow
To use BrightSIGN in a Lightning Flow, drag a screen element from the toolbox to the canvas:
In the resulting dialog, type 'sig' into the search box on the left hand side:
Choose BrightSIGN from the list of results and this adds the BrightSIGN to the screen with the
default attributes.
Specify the API name and change any other attributes as desired.
https://github.com/keirbowden/sigcapapp
These components are suitable for deployment to a subscriber org (the Salesforce instance that
you have installed BrightSIGN) and are open source so may be copied and extended under the
permissive terms of the MIT License.
Many samples are accompanied by a blog post that explains how it works in detail.
5 Signature Captured Event
When a signature is successfully captured against a record, the SignatureCapturedEvt Aura
application event is fired. This contains the Id of the record in the recordId parameter. The
SigCapNotifier component in the samples repository demonstrates how to consume this
event to display a toast message.
6 Multiple BrightSIGN Components on a Single Page
New in version 2.0
Version 2.0 of BrightSIGN introduces the ability to embed multiple components to capture a
signature on a single page. As this would have required significant changes to the existing
component architecture, a new component has been produced to handle this scenario named
SignatureCaptureMulti. This can be used in all of the scenarios shown in the Usage section
and supports the same attributes as the SignatureCapture component. It also supports an
additional attribute of name - a text string that uniquely identifies the component on the page. It
is recommended that the name of the captured Attachment/File (the fileName attribute) is
changed from the default to a unique value for each instance of SignatureCaptureMulti
added to the page.
Solution: Assign the user explicit edit permission to the parent sobject type you are adding the
Attachment/File to via their Profile or a Permission Set.
Explanation: In order to pass the security review, any Apex code must demonstrate that it is
respecting the security configuration of the Salesforce instance. This includes explicit CRUD and
FLS checks before carrying out any DML. In order to save a signature image as an attachment or
file associated with a parent record, the user must have explicit edit permission for the sobject
type of the parent record via their profile or an assigned permission set.
0137 6520 578
info@brightgen.com