enableModifiedFlag - Enable Modified Flag

Allows saving a modified page if the user navigates away.

Category

data

Syntax

enableModifiedFlag="true|false"

Usage

In Design mode, click All Properties and look for enableModifiedFlag under data.

If this property is true and the user navigates away from a changed page, a message appears. The user can choose to save the changes or not.

By default or if this property is false, changes are not saved if the user navigates away from a changed page.

Examples

This XPage enables notifying a user who navigates away from a changed page.
<xp:view xmlns:xp="http://www.ibm.com/xsp/core"
	enableModifiedFlag="true">
	<xp:this.data>
		<xp:dominoDocument var="document1" formName="form1"></xp:dominoDocument>
	</xp:this.data>
	<xp:inputText id="inputText1" value="#{document1.subject}"
		style="font-weight:bold">
	</xp:inputText>
	<xp:button value="submit" id="button1" style="font-weight:bold">
		<xp:eventHandler event="onclick" submit="true"
			refreshMode="complete" immediate="false" save="true">
		</xp:eventHandler>
	</xp:button>
</xp:view>