Search...
clear( )
Clears the signature.
Description
The clear()
function erases the signature from the signature pad and clears the value
property.
Clearing the signature using the clear()
function does not trigger the onChange
event handler.
Note, however, that clearing the signature using the Clear button does trigger an onChange()
event handler, unless the signature input field is already empty.
Syntax
function clear(): void
clear Parameters
This function does not take any parameters.
Returns
This function does not return anything.
Return Type:
void
Was this helpful?
Clear a signature input
Copy Code
1let myEmptySignature = $w("#mySignatureInput").clear();
Clears fields in a form, including a signature input field
Copy Code
1$w('#clearFormButton').onClick(() => {2 $w('TextInput1').value = '';3 $w('TextInput2').value = '';4 $w('#mySignatureInput').clear();5});