0
votes

I have a repeat control & a pager linked to it. The page displays one record from the repeat control at a time and user uses pager to navigate to previous/next document. User can modify the document and click save & next button to save and navigate to next document.

I want to alert user if he changes any field in the form and clicks pager to navigate without saving the changes.

Can somebody please tell me how can I do this?

Regards,

Prashant

1

1 Answers

0
votes

Have a look at the enableModifiedFlag property of the XPage. More details at http://publib.boulder.ibm.com/infocenter/domhelp/v8r0/topic/com.ibm.designer.domino.ui.doc/wpd_controls_pref_enablemodifiedflag.html

--

You might need to trigger the warning message yourself, using CSJS. Have a look at this answer to a related question: https://stackoverflow.com/a/10428881/785061