How to prevent Domino to switch document to edit mode based on my condition? I have a list of documents, user opens the document in read mode (action=openDocument) and there is a button for switching document into edit mode. The button is created using Simple action and 'Change document mode' (this way Domino switches to edit mode using post method without changing the url to action=EditDocument ). I would like to prevent user to edit some documents despite the fact that he has an authors access. In standard Lotus Notes I ussualy place some conditions into PostOpen event and then close document, when condition is not being passed. In xPages, I tried here to place condition and context.redirectToPage code into 'beforeRenderResponse' event, but the redirect do not occur and there is no message on console. How should I accomplish requested behaviour?