Skip to main content

Signing process

#StepCall
1Loadload(documentId)
2SignonSignatureAcquired
3Confirm or discardonSignatureConfirmed
4FinishonDone

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: onSignatureConfirmed is called, the document is signed with an electronic signature that contains the biometric data, and the viewer shows the updated document. Then onDocumentSigned is called.
  • Discard the signature: onSignatureDiscarded is 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:

ValueThe Finish button appears
0 (default)After the first signature.
1When all the signers of this signing act have signed.
2When 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.