19 июля 2012 г. 2:07
I am using SP 2010 with infoPath 2010.
In order to prevent data loss if users of the form close the browser window, we would like to display that prompts the user to save data before closing? It would be something like “Are you sure you want to close the browser?” with <Yes> to continue closing and <No> to cancel the close and return to the application.
I have managed to include a popup on the Forms but this popup comes up every time a user navigates away from a page (this includes button clicks, tab changes etc). Of course, this is not required as all we want is the popup to appear when the user closes the browser window.
20 июля 2012 г. 11:27Модератор
20 июля 2012 г. 16:12
So I can see what you are doing, can you provide me with the script you have implemented to try and confirm the close and cancel if necessary?
In addition, what I also want to advise is that if you have made this change in the default FormServer.aspx then this would be unsupported. You would need to implement any custom scripting like this in a custom ASPX page that hosts the XmlFormView control, which would be used to display your InfoPath forms.
Scott Heim - Microsoft Office InfoPath and SharePoint Designer Online Community Support
- Помечено в качестве ответа Emir LiuMicrosoft Contingent Staff, Moderator 26 июля 2012 г. 4:51