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 key addSignature.
  • 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