IsEncrypted (NotesDocument - JavaScript™)
Read-only. Indicates whether a document is encrypted.
Defined in
NotesDocumentSyntax
isEncrypted() : boolean
Legal value | Description |
---|---|
true |
if the document is encrypted |
false |
if the document is not encrypted |
Usage
See Document.encrypt and Item.IsEncrypted for additional information.Examples
This computed field displays the encryption status for the current document.var doc:NotesDocument = currentDocument.getDocument();
if (doc.isEncrypted()) {
return "This document is encrypted";
} else {
return "This document is not encrypted";
}