Server Administration > Item Fields > Setting Up and Customizing Electronic Signatures > Customizing Electronic Signature Trigger
  
Customizing Electronic Signature Trigger
A pre-created script (signatureRequired.js) is provided for the electronic signature event trigger. You may need to modify this script to use some advanced features of electronic signatures. The script is broken into separate functions that you can modify. Full documentation is available in the comments for those functions.
The pre-created script does the following:
Requires a signature when an item is modified in a way that matches the trigger rule. You can restrict your signature requirements further through the isSigningRequired method.
* 
Consider the following for the batch edit operations:
The isBatchEditItemsOperation() method available in imServerBean can be used in the script for identifying batch edit operations.
Ensure that you call the setRequiresSignature(boolean) method available in imIssueDeltaBean with parameter as true for the items that require signature. By default, the value for the requiresSignature variable is false due to which no signature information is stored in the database for a batch edit. Hence, the edit will be successful.
If the signature is valid, stores the signature information in the item history. You can set up additional logging using the signatureSuccess method.
Allows all authenticated users to sign an item modification. You can restrict the users allowed to sign for an item modification using the signerRestriction method.
Logs any signature failures. You can change what happens when an invalid signature is used, for example, sending an e-mail to an administrator. Use the signatureFailed method.
Displays a message if no signature is provided. You can customize the message by changing the string used by the setSignatureRequired method.
Displays a message if an invalid signature is provided. You can customize the message by changing the string used by the setRetrySignatureRequired method.
Specific methods are available on the imIssueDeltaBean for signature authentication. For details on these methods, refer to the installed Javadocs under:
installdir/data/documentation/javadocs/triggers/index.html
However, you should not have to change any of the calls to these methods.