How to Suppress the Save Warning Message When Closing a Page Using a Handler
Hello Community,
I would like to know how to skip the warning message that appears when closing a page using a handler.
Currently, I’m using the following code to close the page:
await request.$context.executeRequest({
type: "crt.ClosePageRequest",
$context: request.$context
});
regards,
Ajay Kuthe.
Like
There is a request called "crt.CanDiscardUnsavedDataRequest" that you can handle to suppress that. See here: https://customerfx.com/article/suppressing-the-unsaved-data-prompt-when-canceling-a-creatio-freedom-ui-modal-dialog/
Ryan
There is a request called "crt.CanDiscardUnsavedDataRequest" that you can handle to suppress that. See here: https://customerfx.com/article/suppressing-the-unsaved-data-prompt-when-canceling-a-creatio-freedom-ui-modal-dialog/
Ryan