Add Signature Initials
It’s possible to implement signature initials within the signature modal using workarounds. This guide walks you through two possibilities.
Workaround 1
-
You can use an event to detect when the modal is opened and closed, and based on the logic, you can set and reset the labels.
-
The add signature string has an
I18n
entry with the keyaddSignature
. -
Here’s a snippet to change the
addSignature
label:
instance.addEventListener("viewState.change", (viewState) => { if (viewState.interactionMode === PSPDFKit.InteractionMode.SIGNATURE) { PSPDFKit.I18n.messages["en-GB"].addSignature = "Add Initials"; } });
Workaround 2
-
There’s a Catalog example that achieves something similar using custom renderers. Refer to the custom renderers guide for more information.