onSignatureClosed

The event occurs when the signature modal is closed. Provides details about the user action (save, close, background click) and whether a signature was provided.

//Example:
console.log('Signature modal closed');
console.log('Action: ' + eventArgs.details.action); // 'save' or 'close'
console.log('Has signature: ' + eventArgs.details.hasSignature);
console.log('Cancelled: ' + eventArgs.details.cancelled);
console.log('Control ID: ' + eventArgs.details.controlId);
console.log('Timestamp: ' + eventArgs.details.timestamp);

Event Details

The eventArgs.details object contains:

Property
Type
Description

controlId

string

The ID of the signature control that triggered the event

action

string

The user action: 'save' or 'close'

hasSignature

boolean

Whether a signature is present when the modal closes

cancelled

boolean

Whether the modal was closed without saving

timestamp

string

ISO timestamp of when the event occurred

Usage Notes

  • This event is only available for SignaturePad controls

  • The event fires regardless of whether a signature was actually provided

  • Use hasSignature to determine if the user provided a signature

  • The action property helps distinguish between different ways the modal was closed

  • This event works with the signature modal system introduced in the enhanced SignaturePad control

Last updated

Was this helpful?