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:
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 signatureThe
action
property helps distinguish between different ways the modal was closedThis event works with the signature modal system introduced in the enhanced SignaturePad control
Last updated
Was this helpful?