isEditable (NotesXspDocument - JavaScript)

Checks if the current document is in edit mode.

Syntax

isEditable() : boolean
Return value Description
boolean true if the document associated with the current context is in edit mode; false otherwise.

Examples

This button onclick event saves the document if it is in edit mode.
if (document1.isEditable()) {
	document1.save();
	requestScope.status = "Document saved";
} else {
	requestScope.status = "Document not in edit mode";
}