Suppressing the Unsaved Data Prompt When Canceling a Creatio Freedom UI Modal Dialog

When a user cancels a Freedom UI Modal dialog (mini page), they receive the following prompt:

However, you can suppress this prompt by handling the crt.CanDiscardUnsavedDataRequest request and simply returning the value true (and not use normal logic of using return next?.handle(request)). For example:

{
	request: "crt.CanDiscardUnsavedDataRequest",
	handler: async (request, next) => {
		return true;
	}
}

Note, this request is only available in 8.1.1 and higher.

Want content like this delivered to your inbox? Sign up for our newsletter!
ABOUT THE AUTHOR

Ryan Farley

Ryan Farley is the Director of Development for Customer FX and creator of slxdeveloper.com. He's been blogging regularly about SalesLogix, now Infor CRM, since 2001 and believes in sharing with the community. His new passion for CRM is Creatio, formerly bpm'online. He loves C#, Javascript, web development, open source, and Linux. He also loves his hobby as an amateur filmmaker.

Submit a Comment

Your email address will not be published. Required fields are marked *