isResponse (NotesXspDocument - JavaScript)

Checks if the current document is a response document.

Syntax

isResponse() : boolean
Return value Description
boolean true if the document associated with the current context is a response document; false otherwise.

Examples

This code gets the target document for an Open simple action. The target document is its parent.
return document1.getParentId()
This is the condition for the group to which the above event belongs.
document1.isResponse()