Signing process
| # | Step | Call |
|---|---|---|
| 1 | Load | load(documentId) |
| 2 | Sign | onSignatureAcquired |
| 3 | Confirm or discard | onSignatureConfirmed |
| 4 | Finish | onDone |
Load a document
load(documentId) loads a document previously uploaded to MobbSign Server. It returns a promise that resolves when the document is shown; onDocumentLoaded is also called.
new MobbSign(options).then((mobbsign) => mobbsign.load(documentId));
To load several documents in a row, wait for each load to finish:
mobbsign.load(firstId).then(() => mobbsign.load(secondId));
Sign
The signer taps Sign and draws their signature on the screen. When they lift the pen and the time set in signatureAcquisitionTimeout passes, the SDK captures the signature and calls onSignatureAcquired. The signer can then:
- Confirm the signature:
onSignatureConfirmedis called, the document is signed with an electronic signature that contains the biometric data, and the viewer shows the updated document. ThenonDocumentSignedis called. - Discard the signature:
onSignatureDiscardedis called and they can sign again.
Finish the process
Once the document has been signed at least once, the Finish button can appear. onlyFinishWhenEveryoneSign decides when:
| Value | The Finish button appears |
|---|---|
0 (default) | After the first signature. |
1 | When all the signers of this signing act have signed. |
2 | When all the signers of the document have signed. |
If signers are still pending, the SDK asks the user for confirmation before finishing. When the signer taps Finish, onDone is called: it is the moment for your backend to download the signed document.
Read-only mode
With onlyRead: true, the action buttons are hidden and the document can only be read, for example to show a signed document.