clear

Removes a given signature.

Syntax

Reference_Syntax.clear( OBJECT param1 [, BOOLEAN param2 ] )

Parameters

param1

input

A valid XML signature node.

param2 (Optional)

input (Optional)

  • true | 1 (JavaScript) or 1 (FormCalc) (default)

  • Displays a confirmation dialog box indicating that the signature field is cleared.

  • false | 0 (JavaScript) or 0 (FormCalc)

  • Does not display a confirmation dialog box indicating that the signature field is cleared.

Returns

True if the signature was removed successfully. False if the signature was not removed successfully. An exception if the node specified in param1 is not a signature node.

Applies to

Version

XFA 2.1

Examples

JavaScript

// This example removes the signature from all signed objects on a form. 
var oSigs = xfa.signature.enumerate(); 
var iNum = oSigs.length; 
for (var i=0; i < iNum; i++)  
{ 
    var oChild = oSigs.item(i); 
    xfa.signature.clear(child); 
}

FormCalc

// This example removes the signature from all signed objects on a form. 
var oSigs = xfa.signature.enumerate() 
var iNum = oSigs.length - 1 
for i=0 upto iNum step 1 do 
    var oChild = oSigs.item(i) 
    xfa.signature.clear(child) 
endfor

// Ethnio survey code removed